Jump to content
Sign in to follow this  
BloodxBath

a little help.. a VERY easy script

Recommended Posts

BloodxBath

Hey :P ..

i've used alot of macro progs before .. still a noob at it but i know the basic stuff ..

what i dont get is how can i make the script repeat from Step ## to Step ## for lets say an hour!..

its a simple script

i only need it to :

show a yes/no msg DONE

go to winfow DONE

send 2 numbers DONE

repeat NOT DONE!! << i only need to repeat the 2 red line down

set a hot key to stop the script << didnt really try but i can make it xD

here is what i got :

$answer = MsgBox(4, "Killing Boss Macro", "This script will start running in 5 seconds. Run?")

; If "No" was clicked (7) then exit the script

If $answer = 7 Then

MsgBox(0, "AutoIt", "Bye!")

Exit

EndIf

Sleep(5000)

WinActivate ("***********")

Send("2 7")

Sleep(4000)

THANKS ALOT !! x)

Share this post


Link to post
Share on other sites
BrettF
BloodxBath

well thnx for the fast replay Brett :P

i already did take a look & did use the search but i cant make any sense out of it !

im used to the easy progs where i only type

restart 33-36

redo

repeat ..

i just need someone to give me a E.G for what i want to make .. not like the E.G in the Help.. :P

Share this post


Link to post
Share on other sites
BrettF

While 1
Send("2 7")
Sleep(4000)
Wend

That will repeat it indefinitely.

For $i = 1 to 10
Send("2 7")
Sleep(4000)
Next

Will repeat it 10 times.

Cheers,

Brett

Share this post


Link to post
Share on other sites
BloodxBath

u r amazing !! thank you SO MUCH Brett!!

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  

×