Like this:
PYTHON
os.system( "test.au3 A54323323 Login" )
AutoIT
for arg in argv
print arg
All help is needed
Posted 04 October 2005 - 11:19 AM
Posted 04 October 2005 - 11:53 AM
Dim $ourMessage If $CMDLINE[0] Then For $step = 1 To $CMDLINE[0] $ourMessage = $ourMessage & "Command-line arg #" & $step & " = " & $CMDLINE[$step] & @CRLF Next MsgBox(0, "Debug", $ourMessage) Else MsgBox(0, "Error", "No command-line arguments provided.") EndIf
Posted 04 October 2005 - 11:59 AM
Posted 06 October 2005 - 09:07 AM
import time from win32com.client import Dispatch Auto = Dispatch("AutoItX3.Control") Auto.Run("calc.exe") Auto.Run("notepad.exe") time.sleep(1) Auto.Send("AZERTYUIOP = ") time.sleep(1) titreFenetre = 'Calculatrice' Auto.WinActivate(titreFenetre , '') 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(titreFenetre , '') Auto.Send("^v") Auto.Send("{ENTER}")
Edited by Michel Claveau, 06 October 2005 - 09:09 AM.
Posted 07 October 2005 - 05:43 AM
Hi !
With Python, you can, also, control AutoIt-X, via PyWin32.
Exemple :Plain Textimport time from win32com.client import Dispatch Auto = Dispatch("AutoItX3.Control") Auto.Run("calc.exe") Auto.Run("notepad.exe") time.sleep(1) Auto.Send("AZERTYUIOP = ") time.sleep(1) titreFenetre = 'Calculatrice' Auto.WinActivate(titreFenetre , '') 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(titreFenetre , '') Auto.Send("^v") Auto.Send("{ENTER}")
This run OK on a French's Windows XP
The title of the windows ("Calculatrice") can change, in english.
Few "time.sleep(" are here, for give time for to view.
Posted 13 October 2005 - 05:45 PM
import win32com.client
o = win32com.client.Dispatch( "AutoItX3.Control" )
This is a stupid question I'm sure but where do I put AutoItX3.dll in order for this to work. I keep getting a error on Auto = Dispatch("AutoItX3.Control")
Posted 22 November 2005 - 10:16 PM
Hi !
With Python, you can, also, control AutoIt-X, via PyWin32.
Exemple :
Plain Textimport time from win32com.client import Dispatch Auto = Dispatch("AutoItX3.Control") Auto.Run("calc.exe") Auto.Run("notepad.exe") time.sleep(1) Auto.Send("AZERTYUIOP = ") time.sleep(1) titreFenetre = 'Calculatrice' Auto.WinActivate(titreFenetre , '') 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(titreFenetre , '') Auto.Send("^v") Auto.Send("{ENTER}")
This run OK on a French's Windows XP
The title of the windows ("Calculatrice") can change, in english.
Few "time.sleep(" are here, for give time for to view.
Posted 23 November 2005 - 03:34 PM
Im having problems with the AutoItX3.Control in Python. Some of the functions are not being found, like WinGetActiveTitle or WinMinimize, while others like the ones in your example do work. The tooltip shows
(strRun=<PyOleEmpty object at 0x0042E506>, ...
This is what the win32 object says after AutoIt is Dispatched
<win32com.gen_py.AutoItX3 1.0 Type Library.IAutoItX3 instance at 0x15441312>
Something is clearly not linked or registered correctly, but I cant figure out what I can do about it. Anyone have a suggestion?
Thanks
Posted 24 November 2005 - 02:33 PM
0 members, 0 guests, 0 anonymous users