calling Win32 Functions in pythonscript
Posted: Tue Jul 25, 2006 3:01 pm
how?
this is what i have in as a pythonscript (python editor)
but when I execute it I get this :-
how do i use FindWindow (or any win32 function) in a python script?
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.')