Flamethrower Posted February 25, 2006 Share Posted February 25, 2006 I just want the commands to loop -31- times then say something heres the script: ToolTip("Woodbot Version 1.0 Created By Flamethrower: WAIT 5 SECONDS, Nexus will load automatically PAUSE Button pauses, INSERT Terminates", 0, 0) Sleep (5000) WinActivate("Nexus") Sleep (2000) AutoItSetOption("SendKeyDelay", "05") Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{INSERT}", "Terminate") Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip("Flamethrower's Woodbot PAUSED - Do not distribute! BITCH",0,0) WEnd ToolTip("") EndFunc ToolTip("I will fix figure out how to make it withdraw more wood give me a while - Remember Pause Pauses, Insert Terminates",0,0) While 1 $a = 1 Do ToolTip("Process: Saying wood", 0, 0) Send("{ESC}") Send("{ENTER}Wood{ENTER}") Sleep (1240) ToolTip("Process: Choosing type (Weaving tools)", 0, 0) Send("{Up}") Send("{Up}") Send("{ENTER}") Sleep (1250) Send("{UP}") Send("{UP}") Sleep (20) Send("{UP}") Sleep (30) Tooltip("Waiting upon arrival of Weaving tools", 0, 0) Send("{ENTER}") Sleep (1200) Send("{ESC}") Until $a = 0 WEnd Func Terminate() $a = 1 Exit 0 EndFunc I want Send("{ESC}") Send("{ENTER}Wood{ENTER}") Sleep (1240) ToolTip("Process: Choosing type (Weaving tools)", 0, 0) Send("{Up}") Send("{Up}") Send("{ENTER}") Sleep (1250) Send("{UP}") Send("{UP}") Sleep (20) Send("{UP}") Sleep (30) Tooltip("Waiting upon arrival of Weaving tools", 0, 0) Send("{ENTER}") Sleep (1200) Send("{ESC}") to loop 31 times then after it I need it to say Send("d") Sleep(350) Send("z" Send("{Enter}Give my all Ginko wood back{Enter}") Help? Link to comment Share on other sites More sharing options...
cppman Posted February 25, 2006 Share Posted February 25, 2006 (edited) expandcollapse popupFor $i = 1 to 31 ToolTip("Woodbot Version 1.0 Created By Flamethrower: WAIT 5 SECONDS, Nexus will load automatically PAUSE Button pauses, INSERT Terminates", 0, 0) Sleep (5000) WinActivate("Nexus") Sleep (2000) AutoItSetOption("SendKeyDelay", "05") Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{INSERT}", "Terminate") Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip("Flamethrower's Woodbot PAUSED - Do not distribute! BITCH",0,0) WEnd ToolTip("") EndFunc ToolTip("I will fix figure out how to make it withdraw more wood give me a while - Remember Pause Pauses, Insert Terminates",0,0) While 1 $a = 1 Do ToolTip("Process: Saying wood", 0, 0) Send("{ESC}") Send("{ENTER}Wood{ENTER}") Sleep (1240) ToolTip("Process: Choosing type (Weaving tools)", 0, 0) Send("{Up}") Send("{Up}") Send("{ENTER}") Sleep (1250) Send("{UP}") Send("{UP}") Sleep (20) Send("{UP}") Sleep (30) Tooltip("Waiting upon arrival of Weaving tools", 0, 0) Send("{ENTER}") Sleep (1200) Send("{ESC}") Until $a = 0 WEnd Func Terminate() $a = 1 Exit 0 EndFunc I want Send("{ESC}") Send("{ENTER}Wood{ENTER}") Sleep (1240) ToolTip("Process: Choosing type (Weaving tools)", 0, 0) Send("{Up}") Send("{Up}") Send("{ENTER}") Sleep (1250) Send("{UP}") Send("{UP}") Sleep (20) Send("{UP}") Sleep (30) Tooltip("Waiting upon arrival of Weaving tools", 0, 0) Send("{ENTER}") Sleep (1200) Send("{ESC}") next ;to loop 31 times then after it I need it to say Send("d") Sleep(350) Send("z") Send("{Enter}Give my all Ginko wood back{Enter}") Edited February 25, 2006 by CHRIS95219 Miva OS Project Link to comment Share on other sites More sharing options...
greenmachine Posted February 25, 2006 Share Posted February 25, 2006 For $SomeUnusedVariable = 1 to 31 Send("{ESC}") Send("{ENTER}Wood{ENTER}") Sleep (1240) ToolTip("Process: Choosing type (Weaving tools)", 0, 0) Send("{Up}") Send("{Up}") Send("{ENTER}") Sleep (1250) Send("{UP}") Send("{UP}") Sleep (20) Send("{UP}") Sleep (30) Tooltip("Waiting upon arrival of Weaving tools", 0, 0) Send("{ENTER}") Sleep (1200) Send("{ESC}") Next 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