How To Emulate Press And Hold With Pywin32
I am trying to write a python script to send a press and hold key signal. Right now all I have managed to do is the following: import win32com.client shell = win32com.client.Dispat
Solution 1:
You can use win32api.PostMessage
to send WM_KEYDOWN
and WM_KEYUP
messages. See MSDN for documentation of the parameters. The constants are defined in win32con
module.
Post a Comment for "How To Emulate Press And Hold With Pywin32"