python - win32 postmessage shift enter -
i'm trying send shift+enter key combination (new line in textbox) window. have tested code below no output:
win32gui.postmessage(handle, win32con.wm_keydown, win32con.vk_shift, 0) win32gui.postmessage(handle, win32con.wm_keydown, win32con.vk_return, int('0x1c0001',0)) win32gui.postmessage(handle, win32con.wm_keyup, win32con.vk_return, int('0xc0000001',0)) win32gui.postmessage(handle, win32con.wm_keyup, win32con.vk_shift, 0)
i know sendkeys
may work want use function when target window does'nt have focus or other events , programs running.
ideas?
Comments
Post a Comment