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