Sign in to follow this  
Followers 0
dvSHOW

AutoIt Script help

5 posts in this topic

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 script

CODE

; Run

Run($SF_1)

; Setup

WinWaitActive("ACDSee Pro 2")

Send("{ENTER}")

; License Agreement

WinWaitActive("ACDSee Pro 2")

Send("{UP}")

Send("{ENTER}")

; Customer Information

WinActive("ACDSee Pro")

Send("username")

Send("{TAB 3}")

Send("XXXXX-XXXX-XXXXXX-XXXXXX")

Send("{TAB 2}")

Send("{ENTER}")

; Setup Tyte

WinWaitActive("ACDSee Pro 2")

Send("{ENTER}")

; Shell integrated Setup

WinWaitActive("ACDSee Pro 2")

Send("{ENTER}")

; Ready to install

WinWaitActive("ACDSee Pro 2")

Send("{ENTER}")

Sleep(24000)

; Finish

WinWaitActive("ACDSee Pro 2")

Send("{TAB}")

Send("{SPACE}")

Send("{TAB}")

Send("{ENTER}")

Share this post


Link to post
Share on other sites



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 script

CODE

; Run

Run($SF_1)

; Setup

WinWaitActive("ACDSee Pro 2")

Send("{ENTER}")

; License Agreement

WinWaitActive("ACDSee Pro 2")

Send("{UP}")

Send("{ENTER}")

; Customer Information

WinActive("ACDSee Pro")

Send("username")

Send("{TAB 3}")

Send("XXXXX-XXXX-XXXXXX-XXXXXX")

Send("{TAB 2}")

Send("{ENTER}")

; Setup Tyte

WinWaitActive("ACDSee Pro 2")

Send("{ENTER}")

; Shell integrated Setup

WinWaitActive("ACDSee Pro 2")

Send("{ENTER}")

; Ready to install

WinWaitActive("ACDSee Pro 2")

Send("{ENTER}")

Sleep(24000)

; Finish

WinWaitActive("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.

Share this post


Link to post
Share on other sites

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 script

CODE

; Run

Run($SF_1)

; Setup

WinWaitActive("ACDSee Pro 2")

Send("{ENTER}")

; License Agreement

WinWaitActive("ACDSee Pro 2")

Send("{UP}")

Send("{ENTER}")

; Customer Information

WinActive("ACDSee Pro")

Send("username")

Send("{TAB 3}")

Send("XXXXX-XXXX-XXXXXX-XXXXXX")

Send("{TAB 2}")

Send("{ENTER}")

; Setup Tyte

WinWaitActive("ACDSee Pro 2")

Send("{ENTER}")

; Shell integrated Setup

WinWaitActive("ACDSee Pro 2")

Send("{ENTER}")

; Ready to install

WinWaitActive("ACDSee Pro 2")

Send("{ENTER}")

Sleep(24000)

; Finish

WinWaitActive("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.

Share this post


Link to post
Share on other sites

Perhaps an explanation of WHY you need to pause, or what you're waiting for would help.

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by dvSHOW

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0