The Wiki for Tale 7 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

User:Sithid/Macros/AutoIt/Clicker

From ATITD7
< User:Sithid‎ | Macros‎ | AutoIt
Revision as of 21:55, 20 September 2015 by Sithid (talk | contribs) (Created page with "Repeat clicker on a delay. I use it in F8 mode to walk me across long, flat(ish) distances. <pre> #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Ou...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Repeat clicker on a delay. I use it in F8 mode to walk me across long, flat(ish) distances.

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Outfile=send_click.exe
#AutoIt3Wrapper_Outfile_x64=send_click64.exe
#AutoIt3Wrapper_Compile_Both=y
#AutoIt3Wrapper_UseX64=y
#AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

Global $Paused = True
Global $MouseLoc;

HotKeySet( "!{ESC}", "Terminate" )
HotKeySet( "{PAUSE}", "TogglePause" )

Global $Delay = 5000;

Main()

Func Main()
    Do
		If $Paused Then
			Sleep( 200 );
		Else
			MouseClick( "left" );
			Sleep( $Delay )
		EndIf
	Until 1 < 0
EndFunc

Func TogglePause()
	$Paused = Not $Paused
EndFunc

Func Terminate()
	Exit
EndFunc