tang Posted November 9, 2005 Share Posted November 9, 2005 (edited) Baisically I am trying to make a autoclicker for this game and want to know if i am ishoooting in the dark is there any possible way for this script or any other script to autoclick on this game. http://www.kingsofchaos.com/recruit.php?uniqid=4gv77477 comments-startMsgBox(10000, "", "This won't be executed")MsgBox(10000, "", "Or this")#comments-end;;; #csMsgBox(4096, "", "Autoclicker 1.0 will now start!")#ceGlobal $PausedHotKeySet("{PAUSE}", "TogglePause")HotKeySet("{ESC}", "Terminate")While 1MouseClick("left", 130, 234, 5)WendFunc TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("")EndFuncFunc Terminate() Exit 0EndFuncCan i have your opinions please! thanx,Tang Edited November 9, 2005 by tang Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted November 9, 2005 Moderators Share Posted November 9, 2005 While 1 MouseClick("left", 130, 234, 5) Wend With that there is no need to tell it to click 5 times, because it will never stop clicking. There are a few things you need to look at: 1. Opt("MouseCoordMode", 0 or 1 or 2) ; based on window/screen/client coords pick one not all 3. 2. Opt("WinTitleMatchMode", 1 to 4) ; read help for answers 3. Define your window in a variable: example: $WINDOW = "King whatever" 4. Make it a condition on it clicking using an if or case statement Example: If $Condition_One <> Something Then MouseClick() 5. Look at WinActive / WinActivate in the help file While 1 If $Condition_One = True Then ; This is not a real statement If Not WinActive($WINDOW) Then WinActivate($Window) MouseClick(("left", 130, 234, 5) EndIf Sleep(100); give cpu a rest Wend Good Luck 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. 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