Sign in to follow this  
Followers 0
pc_gurl

run AutoIT script for a length of time

4 posts in this topic

can i run a script and keep it runnig and repeating itself until i stop it??

Share this post


Link to post
Share on other sites



Look at While/Wend - Do/Until - For/Next for loops and HotKeySet() in the help file for manually stopping.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Look at While/Wend - Do/Until - For/Next for loops and HotKeySet() in the help file for manually stopping.

sorry, i'm bored enough to do the work for you, but you should still look that stuff up...

HotKeySet("{PAUSE}","IThinkReallyLongFunctionNamesAreFunny")
MsgBox(0,"boredom","The enegergizer bunny keeps going...")
While 1
    MsgBox(0,"boredom","and going...")
WEnd
Func IThinkReallyLongFunctionNamesAreFunny()
    Exit
EndFunc

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

This should give you a general idea too:

$start = TimerInit()
Dim $diff, $i

While $diff < 5; not run more than 5 secs (approximately;-)
    $i = $i + 1
    $diff = Int(TimerDiff($start) / 1000); we turn this from msecs to seconds
    TrayTip("test", $i, 30)
    Sleep(1000); wait 1000 ms to do the loop (= 1 sec)
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  
Followers 0