dvSHOW Posted December 31, 2007 Posted December 31, 2007 Hey... I am making autoit script. What do i must write instead of Sleep (24000), i need something else, not pause, any suggestion?here is my scriptCODE; RunRun($SF_1); SetupWinWaitActive("ACDSee Pro 2")Send("{ENTER}"); License AgreementWinWaitActive("ACDSee Pro 2")Send("{UP}")Send("{ENTER}"); Customer InformationWinActive("ACDSee Pro")Send("username")Send("{TAB 3}")Send("XXXXX-XXXX-XXXXXX-XXXXXX")Send("{TAB 2}")Send("{ENTER}"); Setup TyteWinWaitActive("ACDSee Pro 2")Send("{ENTER}"); Shell integrated SetupWinWaitActive("ACDSee Pro 2")Send("{ENTER}"); Ready to installWinWaitActive("ACDSee Pro 2")Send("{ENTER}")Sleep(24000); FinishWinWaitActive("ACDSee Pro 2")Send("{TAB}")Send("{SPACE}")Send("{TAB}")Send("{ENTER}")
martin Posted December 31, 2007 Posted December 31, 2007 Hey... I am making autoit script. What do i must write instead of Sleep (24000), i need something else, not pause, any suggestion?here is my scriptCODE; RunRun($SF_1); SetupWinWaitActive("ACDSee Pro 2")Send("{ENTER}"); License AgreementWinWaitActive("ACDSee Pro 2")Send("{UP}")Send("{ENTER}"); Customer InformationWinActive("ACDSee Pro")Send("username")Send("{TAB 3}")Send("XXXXX-XXXX-XXXXXX-XXXXXX")Send("{TAB 2}")Send("{ENTER}"); Setup TyteWinWaitActive("ACDSee Pro 2")Send("{ENTER}"); Shell integrated SetupWinWaitActive("ACDSee Pro 2")Send("{ENTER}"); Ready to installWinWaitActive("ACDSee Pro 2")Send("{ENTER}")Sleep(24000); FinishWinWaitActive("ACDSee Pro 2")Send("{TAB}")Send("{SPACE}")Send("{TAB}")Send("{ENTER}")There are other ways bt why do you not want to use sleep? Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
MarkK Posted December 31, 2007 Posted December 31, 2007 Hey... I am making autoit script. What do i must write instead of Sleep (24000), i need something else, not pause, any suggestion?here is my scriptCODE; RunRun($SF_1); SetupWinWaitActive("ACDSee Pro 2")Send("{ENTER}"); License AgreementWinWaitActive("ACDSee Pro 2")Send("{UP}")Send("{ENTER}"); Customer InformationWinActive("ACDSee Pro")Send("username")Send("{TAB 3}")Send("XXXXX-XXXX-XXXXXX-XXXXXX")Send("{TAB 2}")Send("{ENTER}"); Setup TyteWinWaitActive("ACDSee Pro 2")Send("{ENTER}"); Shell integrated SetupWinWaitActive("ACDSee Pro 2")Send("{ENTER}"); Ready to installWinWaitActive("ACDSee Pro 2")Send("{ENTER}")Sleep(24000); FinishWinWaitActive("ACDSee Pro 2")Send("{TAB}")Send("{SPACE}")Send("{TAB}")Send("{ENTER}")Take a look at TimerInit() and TimerDiff() in the AutoIT help files. You could initialise a timer variable and then set up a loop using TimerDiff. Using this method allows you to pause execution of the script until either a condition within the loop is met or TimerDiff reaches a predefined limit.
JerryD Posted December 31, 2007 Posted December 31, 2007 Perhaps an explanation of WHY you need to pause, or what you're waiting for would help.
dvSHOW Posted December 31, 2007 Author Posted December 31, 2007 (edited) if i don't write sleep(24000) the next function start and cancel installation. I found one way, i add subtitle to function ; Ready to install WinWaitActive("ACDSee Pro 2", "Ready to Install the Program") Send("{ENTER}") ; Install WinWaitActive("ACDSee Pro 2", "Installing ACDSee Pro 2") ; Finish WinWaitActive("ACDSee Pro 2", "InstallShield Wizard Completed") Edited December 31, 2007 by dvSHOW
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