Spiderman Posted May 22, 2006 Share Posted May 22, 2006 HiIm new to autoit, so sorry for my questionI used scriptwrite making a script for a package. It look like thisOpt("WinWaitDelay",100)Opt("WinTitleMatchMode",4)Opt("WinDetectHiddenText",1)Opt("MouseCoordMode",0)Run('D:\Ordre\Setup.exe')WinWait("iSYS Installer","")If Not WinActive("iSYS Installer","") Then WinActivate("iSYS Installer","")WinWaitActive("iSYS Installer","")Send("{ENTER}{ENTER}")WinWait("Microsoft ActiveSync","")If Not WinActive("Microsoft ActiveSync","") Then WinActivate("Microsoft ActiveSync","")WinWaitActive("Microsoft ActiveSync","")Send("{ENTER}{ENTER}")WinWait("IRXpress USB IrDA - InstallShield Wizard","")If Not WinActive("IRXpress USB IrDA - InstallShield Wizard","") Then WinActivate("IRXpress USB IrDA - InstallShield Wizard","")WinWaitActive("IRXpress USB IrDA - InstallShield Wizard","")Send("{ENTER}{ENTER}{ENTER}{ENTER}{TAB}{DOWN}{LEFT}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{DOWN}{TAB}{ENTER}{ENTER}")WinWait("Microsoft ActiveSync","")If Not WinActive("Microsoft ActiveSync","") Then WinActivate("Microsoft ActiveSync","")WinWaitActive("Microsoft ActiveSync","")Send("{ENTER}")WinWait("iSYS Installer","")If Not WinActive("iSYS Installer","") Then WinActivate("iSYS Installer","")WinWaitActive("iSYS Installer","")Send("{TAB}{ENTER}")It works almost fine, but then it's supposed to install IRXPress(look bold) it stops-nothing happensCan somone tell me how to fix this Link to comment Share on other sites More sharing options...
herewasplato Posted May 23, 2006 Share Posted May 23, 2006 Welcome to the forums and thanks for posting the script that you want help with.Consider adding this one line near the top of your script:Opt ("TrayIconDebug", 1)That will let you "mouse over" the AutoIt icon in your system tray and see what line the script has stopped on. It would be rare for the code that you posted to stop where you indicated.Also, when posting AutoIt code to the forum, please consider putting the word code in brackets [] at the start of your AutoIt code and end your AutoIt code with /code in brackets [] - like [Although, at the moment, the code tags seem to be breaking code.]This line: Send("{ENTER}{ENTER}... gets messed up either way you post it:Send("{ENTER}{ENTER}{ENTER}{ENTER}{TAB}{DOWN}{LEFT}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{DOWN}{TAB}{ENTER}{ENTER}")Send("{ENTER}{ENTER}{ENTER}{ENTER}{TAB}{DOWN}{LEFT}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{DOWN}{TAB}{ENTE R}{ENTER}")...enjoy AutoIt... [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now