Using AutoIT with Python
Revision as of 09:33, 19 February 2013 by PeterHarding (talk | contribs) (Created page with "=Some Links= * http://www.autoitscript.com/forum/topic/16540-call-autoit-from-python-script/ =Sample Scipts= <pre> import time from win32com.client import Dispatch Auto ...")
Some Links
Sample Scipts
import time from win32com.client import Dispatch Auto = Dispatch("AutoItX3.Control") Auto.Run("calc.exe") Auto.Run("notepad.exe") time.sleep(2) title = 'Untitled' Auto.WinActivate(title, '') Auto.Send("AZERTYUIOP = ") time.sleep(1) title = 'Calculator' Auto.WinActivate(title, '') time.sleep(1) Auto.Send("12345") time.sleep(0.4) Auto.Send("{+}") time.sleep(0.4) Auto.Send("54321") time.sleep(0.4) Auto.Send("{=}") time.sleep(0.4) Auto.Send("^c") time.sleep(1) Auto.WinClose(title , '') title = 'Untitled' Auto.WinActivate(title, '') Auto.WinClose(title , '') Auto.Send("^v") Auto.Send("{ENTER}")