pythonアナログキーボードマウス入力

10218 ワード

最近、キーボードマウスの入力をシミュレートし、検索した結果、いくつかの結果が得られました.
************************************************************************************************************************
pyUserInputは、キーボードマウスをシミュレートでき、機能的で使いやすい
https://github.com/SavinaRoja/PyUserInput/wiki/Installation
pyhookの同時インストールが必要です
これはpyMouseの一例です
from pymouse import PyMouse m = PyMouse() m.position() #gets mouse current position coordinates m.move(x,y) m.click(x,y) #the third argument "1" represents the mouse button m.press(x,y) #mouse button press m.release(x,y) #mouse button release

************************************************************************************************************************
http://www.eventghost.org/
eventGhost
************************************************************************************************************************
http://msdn.microsoft.com/zh-cn/library/system.windows.forms.sendkeys.aspx
SendKeys
http://msdn.microsoft.com/en-us/library/ms171548.aspx?cs-save-lang=1&cs-lang=cpp#code-snippet-2
pythonにも独自のSendKeysモジュールがあります
https://github.com/search?l=Python&q=sendkey&ref=searchresults&type=Repositories
************************************************************************************************************************
http://stackoverflow.com/questions/11906925/python-simulate-keydown
各種シミュレーションkeyの方法
http://stackoverflow.com/questions/14489013/simulate-python-keypresses-for-controlling-a-game
http://www.gamedev.net/topic/371104-c-directinput-hooking-component-and-sample/
direct inputに言及しました