I used win32process.CreateProcess function created a process:
handle = win32process.CreateProcess('LabMax.exe', '',
None, None, 0, win32process.CREATE_NO_WINDOW,
None, None, win32process.STARTUPINFO())
print(handle)
The handle showed:
(<PyHANDLE:600>, <PyHANDLE:860>, 11696, 10648)
Then I tried to get windows text by the first PyHANDLE:
title = win32gui.GetWindowText(handle[0])
print('Title:',title)
But it showed NOTHING:
Title:''
I have tried some other functions which required PyHANDLE object, but all of them didn't work.
why?