Python Keypress代码

时间:2015-05-01 16:23:43

标签: python

我从Noctis Skytower找到了一个Keypress代码,但我无法模拟ø或Ø等ASCII键。

我的意思是Noctis Skytower的答案:

Python simulate keydown

我试过了

SendInput(Keyboard(VK_MENU))
SendInput(Keyboard(KEY_1),Keyboard(KEY_5),Keyboard(KEY_5))
SendInput(Keyboard(VK_MENU,KEYEVENTF_KEYUP))

SendInput(Keyboard(VK_MENU),Keyboard(KEY_1))
SendInput(Keyboard(VK_MENU),Keyboard(KEY_5))  
SendInput(Keyboard(VK_MENU),Keyboard(KEY_5))

SendInput(Keyboard(VK_MENU))
SendInput(Keyboard(VK_MENU),Keyboard(KEY_1))
SendInput(Keyboard(VK_MENU),Keyboard(KEY_5))  
SendInput(Keyboard(VK_MENU),Keyboard(KEY_5))
SendInput(Keyboard(VK_MENU,KEYEVENTF_KEYUP))

但所有样本都不起作用。

0 个答案:

没有答案