Jump to content

a few quick questions


Recommended Posts

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
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...