this is what i have in as a pythonscript (python editor)
Code: Select all
from win32gui import FindWindow
def SomeFunctionIWantToUse():
strAString = ""
hWnd = FindWindow("XYZApp", None)
return strAString
print(SomeFunctionIWantToUse())
Code: Select all
Python Script
Traceback (most recent call last):
Python script "38", line 11, in ?
print(SomeFunctionIWantToUse())
Python script "38", line 7, in SomeFunctionIWantToUse
hWnd = FindWindow("XYZApp", None)
error: (2, 'FindWindow', 'The system cannot find the file specified.')