Share

Python Win32 GUI Automation

Tracker: Bugs

5 Python 2.5 fails global name 'SendKeys' is not defined - ID: 1567170
Last Update: Settings changed ( mcmahon_m )

running an example with Python 2.5 gets:

C:\pywinauto-0.3.6\examples>python
SaveFromInternetExplorer.py http://www.google.com
No Menu's in IE: []
They are implemented as a toolbar: ['', u'Go']
Traceback (most recent call last):
File "SaveFromInternetExplorer.py", line 36, in <module>
ie.TypeKeys("%FA")
File
"c:\Python25\Lib\site-packages\pywinauto\controls\HwndWrapper.py",
line 9
27, in TypeKeys
SendKeys.SendKeys(
NameError: global name 'SendKeys' is not defined

Is SendKeys a prerequsite?

Thanks


Gábor Lipták ( gliptak ) - 2006-09-28 16:42

5

Closed

None

Nobody/Anonymous

None

None

Public


Comments ( 2 )




Date: 2007-04-07 05:32
Sender: technoscavenger


Hi gliptak,

Yep, Sendkey is pre-requisite. It can be downloaded from
http://www.rutherfurd.net/python/sendkeys/index.html. You can also visit
http://www.openqa.org/pywinauto/ for more information. ctypes is not needed
for 2.5 anymore because it is built-in.

Regards,


Date: 2006-12-04 23:35
Sender: micklweissAccepting Donations


http://www.rutherfurd.net/python/sendkeys/index.html

It is a prerequisite.

-Mick


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 2 )

Field Old Value Date By
status_id Open 2007-12-03 12:41 mcmahon_m
close_date - 2007-12-03 12:41 mcmahon_m