vb net sendkeys 模拟按下ALT+Tab无效
My.Computer.Keyboard.SendKeys("%tab")无法打开这个窗体,但是用键盘就能打开...
My.Computer.Keyboard.SendKeys("%tab")
无法打开这个窗体,但是用键盘就能打开 展开
无法打开这个窗体,但是用键盘就能打开 展开
2个回答
展开全部
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Private Const KEYEVENTF_KEYUP = &H2
keybd_event vbKeyMenu, 0, 0, 0
keybd_event vbKeyTab, 0, 0, 0
keybd_event vbKeyTab, 0, KEYEVENTF_KEYUP, 0
keybd_event vbKeyMenu, 0, KEYEVENTF_KEYUP, 0
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询