BloodxBath Posted August 12, 2008 Share Posted August 12, 2008 Hey ..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 scripti only need it to :show a yes/no msg DONEgo to winfow DONEsend 2 numbers DONErepeat NOT DONE!! << i only need to repeat the 2 red line downset a hot key to stop the script << didnt really try but i can make it xDhere 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 scriptIf $answer = 7 Then MsgBox(0, "AutoIt", "Bye!") ExitEndIfSleep(5000)WinActivate ("***********")Send("2 7")Sleep(4000)THANKS ALOT !! x) Link to comment Share on other sites More sharing options...
BrettF Posted August 12, 2008 Share Posted August 12, 2008 Have a look at loops in the help file- While...Wend, For...Next, Do...Until. Have a look, and see what works for you Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
BloodxBath Posted August 12, 2008 Author Share Posted August 12, 2008 well thnx for the fast replay Brett 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.. Link to comment Share on other sites More sharing options...
BrettF Posted August 12, 2008 Share Posted August 12, 2008 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 Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
BloodxBath Posted August 12, 2008 Author Share Posted August 12, 2008 u r amazing !! thank you SO MUCH Brett!! 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