Sign in to follow this  
Followers 0
ink

Delay in secounds

5 posts in this topic

I'm Currently working on a code (look below) and i want to make the delay in secounds instead of milliseconds

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.2.4.4
 Author:         myName

 Script Function:
    Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here
Global $i = 1
Opt("MouseCoordMode", 2)
$i1 = InputBox("Question", "how many times do you want the mouse to move must be numbers")
$delay = InputBox("Question", "how much delay should there be between each mouse move?")


While $i <= $i1
        Sleep($delay)
            MouseMove(0,0, 2)
    $i = $i + 1
wend

Share this post


Link to post
Share on other sites



So, how many miliseconds are there in one second? <_<


"be smart, drink your wine"

Share this post


Link to post
Share on other sites

y eah I know that but is it possible to write it in secound instead of millisecounds

Share this post


Link to post
Share on other sites

y eah I know that but is it possible to write it in secound instead of millisecounds

Why not try adding $Delay + 999 ?

Share this post


Link to post
Share on other sites

Why not MULTIPLY the number of seconds times 1000

;Sleep 3 seconds

Sleep(3*1000)

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