kim Posted October 19, 2004 Posted October 19, 2004 (edited) trying to make it so it will keep leftclick 2 time over 2 place over and over but it will not even start plz help MouseClick("left", 290, 338, 50, 0) tryed that but i need a loop ahhhhhhhhh sucha noob at this looping is the problem for me... this is the 1st time using this program but i am so having a problem.... Edited October 19, 2004 by kim
kim Posted October 19, 2004 Author Posted October 19, 2004 (edited) ahhhh any way to make this pause and start to work? sorry very new to this... HotKeySet("{ESC}", "Terminate") HotKeySet("{{END}", "TogglePause") // yea one { not two i see it now HotKeySet("{{HOME}", "Startagain") // yea one { not two i see it now Func Terminate() Exit 0 EndFunc Func TogglePause() $on = 1 EndFunc Func Startagain() $on = 0 EndFunc $on = 0 // last time even if the $on = 1 i made it so that since $on = 0 while $on = 1 // is not the same so i tought it would stop. but since there are sleep (500) // #on = 1 funtion this will work better wow wend // ka ka ka just starting but i see it clear now thank you While $on = 0 Sleep (500) MouseClick("left", 290, 338, 1, 0) Sleep (500) MouseClick("left", 315, 339, 1, 0) Wend Edited October 19, 2004 by kim
normeus Posted October 19, 2004 Posted October 19, 2004 HotKeySet("{ESC}", "Terminate") HotKeySet("{END}", "TogglePause") HotKeySet("{HOME}", "Startagain") Func Terminate() Exit 0 EndFunc Func TogglePause() $on = 1 EndFunc Func Startagain() $on = 0 EndFunc $on = 0 while 1 While $on = 1 Sleep (500) Wend Sleep (500) MouseClick("left", 290, 338, 1, 0) Sleep (500) MouseClick("left", 315, 339, 1, 0) wend this works. you had some typos. download SCITE (editor ) it will HELP YOU!!!! there are better ways of doing this but I hate typing http://www.autoitscript.com/autoit3/scite/...iTe4AutoIt3.exe
kim Posted October 19, 2004 Author Posted October 19, 2004 wow thank you god i have to learn how to use this better
JSThePatriot Posted October 19, 2004 Posted October 19, 2004 (edited) I am pasting a code that does what I tell it to only when I tell it to. Use what you want. I am pasting this so you can learn how it is put together properly. I would also recomend SciTE as well. I will see if I can find the link to it.expandcollapse popupGlobal $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("^!d", "Dig") HotKeySet("^!c", "Chop") HotKeySet("^!x", "mExit") HotKeySet("{End}", "End") While 1 Sleep(100) WEnd Func Chop() While 1 ControlSetText("Rise Or Die", "", "ThunderRT6TextBox1", "Chop" ) ControlSend('Rise Or Die','','ThunderRT6TextBox1','{enter}') Sleep(10555) WEnd EndFunc Func Dig() While 1 ControlSetText("Rise Or Die", "", "ThunderRT6TextBox1", "dig" ) ControlSend('Rise Or Die','','ThunderRT6TextBox1','{enter}') Sleep(15555) WEnd EndFunc ;Text box containing game info ;RichTextWndClass1 ;Text to watchfor... ;WildCat shouts: Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func mExit() Exit EndFunc Func End() While 1 Sleep(100) WEnd EndFuncLet me know if you have any questions.JSEdit: Here is the link http://www.autoitscript.com/fileman/users/jdeb/scite4autoit3.exe Edited October 19, 2004 by JSThePatriot AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)
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