retarded directory names exist in the wild, might as well learn to cope with them
Quote (Azrad @ Jul 23 2016 03:24pm)
It has been a long time since I 'Pythoned' on windows, but I believe you can just use / instead of \ and avoid the problem of escapes. So if your local file is C:\windowssucks\text.txt then python should be able to access as C:/windowssucks/text.txt
this does work
Quote (CyberGod @ Jul 23 2016 02:33pm)
oo i did this at like 3am last night, just googling code, very new to python x.x
so test.exe will already be running, and it will be sending a json strinify obj to it with copydata.
have test.exe create a hidden window. the wndproc for that window will handle the WM_COPYDATA message
find the window from python using FindWindow
ditch the get_hwnds_for_pid() stuff
there are a lot of ways to skin this cat btw