Jump to content
Sign in to follow this  
Syn7hetic

a few quick questions

Recommended Posts

Syn7hetic

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 :P

Edited by Syn7hetic

Share this post


Link to post
Share on other sites
martin

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)

You need to use random with brackets round the parameters

Random(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 things

Look 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.

Share this post


Link to post
Share on other sites
Syn7hetic

so if i understand

Random(60000,70000)

will

sleep

but a random ammount of time between 60000 and 70000?

Edited by Syn7hetic

Share this post


Link to post
Share on other sites
martin

so if i understand

Random(60000,70000)

will

sleep

but 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.

Share this post


Link to post
Share on other sites
psychostrat

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.