Syn7hetic Posted July 28, 2008 Share Posted July 28, 2008 (edited) ok when i set a sleep(time) how long is 2mins 30sec? (is it 150000?) is there a way to add randomness to sleep times ie sleep(65000) maybe like sleep((random 60000, 70000)) is there a way to add randomness to mouse cords ie MouseMove(240,419) maybe like MouseMove(235,415, 245, 425) also how do you loop things $loop = 0 while $loop = 0 do ? doesnt need to end ie (dont loop this part code code code code dont loop this part) (loop this part code code code code loop this part) any help would be very nice Edited July 28, 2008 by Syn7hetic Link to comment Share on other sites More sharing options...
martin Posted July 28, 2008 Share Posted July 28, 2008 ok when i set a sleep(time) how long is 2mins 30sec?(is it 150000?)is there a way to add randomness to sleep timesie sleep(65000)maybe like sleep((random 60000, 70000))is there a way to add randomness to mouse cordsie MouseMove(240,419)maybe like MouseMove(235,415, 245, 425)You need to use random with brackets round the parametersRandom(60000,70000)Try the things you are thinking of and see what happens, it's one of the best ways to learn.also how do you loop thingsLook up While, for, do in the help and study the examples and play with them. 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. Link to comment Share on other sites More sharing options...
Syn7hetic Posted July 28, 2008 Author Share Posted July 28, 2008 (edited) so if i understand Random(60000,70000) will sleep but a random ammount of time between 60000 and 70000? Edited July 28, 2008 by Syn7hetic Link to comment Share on other sites More sharing options...
martin Posted July 28, 2008 Share Posted July 28, 2008 so if i understandRandom(60000,70000)willsleepbut a random ammount of time?Sleep(Random(60000,70000))will sleep for some time between 60000 and 70000 mS. 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. Link to comment Share on other sites More sharing options...
psychostrat Posted July 28, 2008 Share Posted July 28, 2008 maybe something like this... dunno, I'm a newbie too. While 1 $i = Sleep(Random(1000,7000)) MsgBox(0,"","testing testing testing",$i ) MouseMove(random(100, 600), random(400, 480), random(500, 800)) Wend 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