ink Posted October 22, 2007 Share Posted October 22, 2007 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 Link to comment Share on other sites More sharing options...
Siao Posted October 22, 2007 Share Posted October 22, 2007 So, how many miliseconds are there in one second? "be smart, drink your wine" Link to comment Share on other sites More sharing options...
ink Posted October 22, 2007 Author Share Posted October 22, 2007 y eah I know that but is it possible to write it in secound instead of millisecounds Link to comment Share on other sites More sharing options...
quinner Posted October 22, 2007 Share Posted October 22, 2007 y eah I know that but is it possible to write it in secound instead of millisecoundsWhy not try adding $Delay + 999 ? Link to comment Share on other sites More sharing options...
weaponx Posted October 22, 2007 Share Posted October 22, 2007 Why not MULTIPLY the number of seconds times 1000 ;Sleep 3 seconds Sleep(3*1000) 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