Re: [python-win32] Sending Keystrokes to Active Windows

2013-07-11 Thread Michel Claveau
;\n") keyb("A\n") time.sleep(1) keyb("f",alt=True) # {Alt} F (ouvre menu ?) time.sleep(1) keyb([27,27]) # 2 x {Escape} #--------------------- - Original Message - From: "leegold" To: Sent: Thursday, July 11, 2013 8:19 AM Subject: [python-win32] Sending Keystrokes to Active W

Re: [python-win32] Sending Keystrokes to Active Windows (leegold)

2013-07-11 Thread reckoner
Use dragonfly: https://code.google.com/p/dragonfly/ Then, (FocusWindow(title='firefox')+Key('c-t') ).execute() will open a new tab in firefox. good luck! ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listi

[python-win32] Sending Keystrokes to Active Windows

2013-07-10 Thread leegold
Hi, I have Python 3.3 installed on XP. I want to send keystrokes to Firefox. I've searched for an answer but my knowledge of Win32 was not enough to make it work. If there was a small example or link to a code snip i could try. Thank you. ___ python-win3