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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -