Jump to content

script that autoclicks.


 Share

Recommended Posts

Hello, I am a newbie of the great autoit script. I really need some help.

I would like to make a small script that makes this:

-Auto-click the right mouse button every 2nd second.

-It should have an on and off command.

-It should be specific for a certain game.

I have tried over and over. I manage to do a loop that clicks alright, but to get that loop to have an on and off button is beyond me. This script is actually for a online game (MMORPG) where the right mouse button fires the weapon. I need it so I don't get repetetive stress injury.

Any help would be appreciated..

Thanks in advance..

Link to comment
Share on other sites

Hello, I am a newbie of the great autoit script. I really need some help.

I would like to make a small script that makes this:

-Auto-click the right mouse button every 2nd second.

-It should have an on and off command.

-It should be specific for a certain game.

I have tried over and over. I manage to do a loop that clicks alright, but to get that loop to have an on and off button is beyond me. This script is actually for a online game (MMORPG) where the right mouse button fires the weapon. I need it so I don't get repetetive stress injury.

Any help would be appreciated..

Thanks in advance..

Welcome to the forums! Great to see another game thingo! :)

Lets see your code then :)

Link to comment
Share on other sites

Just open the help and look for "Hotkeyset"

CODE
; Press Esc to terminate script, Pause/Break to "pause"

Global $Paused

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

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

HotKeySet("+!d", "ShowMessage") ;Shift-Alt-d

;;;; Body of program would go here ;;;;

While 1

Sleep(100)

WEnd

;;;;;;;;

Func TogglePause()

$Paused = NOT $Paused

While $Paused

sleep(100)

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

WEnd

ToolTip("")

EndFunc

Func Terminate()

Exit 0

EndFunc

Func ShowMessage()

MsgBox(4096,"","This is a message.")

EndFunc

Just replace the the ;;;; Body of program would go here ;;;; wit your code

Link to comment
Share on other sites

Yes. Here is a example i already posted:

http://www.autoitscript.com/forum/index.php?showtopic=57715

CODE

HotKeySet("{F5}", "Start")

HotKeySet("!{F5}","Quit")

TogglePause()

Func Start()

HotKeySet("{F5}")

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

ToolTip('Script on', 0, 20)

While 1

PixelSearch(88, 38, 143, 38, 0xFF3C51)

If Not @error Then

Send("{8}")

EndIf

Sleep(500)

WEnd

EndFunc

Func TogglePause()

ToolTip('Script off',0,20)

HotKeySet("{F5}")

HotKeySet("{F5}", "Start")

While 1

sleep(100)

WEnd

EndFunc

func Quit()

Exit

EndFunc

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...