Creating continuous keystroke with python

Abhas Bhattacharya abhasbhattacharya2 at gmail.com
Sun Jan 13 10:36:51 EST 2013


I need to generate continuous keystroke with python. I have been trying with the sendkeys module, but the only command it supports is sending discrete keypresses. But I need a continous keypress, so that the other application (which in this case is a game which triggers an action only when a key is continously pressed for some time)can recognise it as such. Also I tried using the sendkeys function on pywin32 api, but it does the same thing too. My hope is there will be another function in pywin32 or some other api which can create seperate keydown event and keyup event so that I can bypass the keydown event for some time.



More information about the Python-list mailing list