Jump to content

Can it be done!


tang
 Share

Recommended Posts

Baisically I am trying to make a autoclicker for this game and want to know if i am i

shoooting 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-start

MsgBox(10000, "", "This won't be executed")

MsgBox(10000, "", "Or this")

#comments-end

;;; #cs

MsgBox(4096, "", "Autoclicker 1.0 will now start!")

#ce

Global $Paused

HotKeySet("{PAUSE}", "TogglePause")

HotKeySet("{ESC}", "Terminate")

While 1

MouseClick("left", 130, 234, 5)

Wend

Func TogglePause()

$Paused = NOT $Paused

While $Paused

sleep(100)

ToolTip('Script is "Paused"',0,0)

WEnd

ToolTip("")

EndFunc

Func Terminate()

Exit 0

EndFunc

Can i have your opinions please!

thanx,Tang

Edited by tang
Link to comment
Share on other sites

  • Moderators

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...