Python win32con.VK_RIGHT Examples
The following are 1
code examples of win32con.VK_RIGHT().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
win32con
, or try the search function
.
Example #1
Source File: inputs.py From NGU-scripts with GNU Lesser General Public License v3.0 | 5 votes |
def send_arrow_press(left :bool) -> None: """Sends either a left or right arrow key press""" if left: key = wcon.VK_LEFT else : key = wcon.VK_RIGHT win32gui.PostMessage(Window.id, wcon.WM_KEYDOWN, key, 0) time.sleep(0.05) win32gui.PostMessage(Window.id, wcon.WM_KEYUP, key, 0) time.sleep(0.05)