Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.1 kB
3
Indexable
Never
#MaxHotkeysPerInterval 1000
#Persistent

global g_is_suspended := 0
global g_space_spam_active := 0

; Nothing but global variables is to be written before this line



F12::
	Suspend, Permit
	Reload
return
Pause::
	Suspend, Permit
	Suspend
	g_is_suspended := 1 - g_is_suspended
return
~esc::
	Suspend, Permit
	if( g_is_suspended = 1)
	{
		Suspend
		g_is_suspended := 0
	}
return
~enter::
	Suspend, Permit
	if( not g_is_suspended = 1)
	{
		Suspend
		g_is_suspended := 1
	}
	else if( g_is_suspended = 1)
	{
		Suspend
		g_is_suspended := 0
	}
return



#IfWinActive ahk_exe FSD-Win64-Shipping.exe


~+tab::
	Suspend, Permit
	
	if( not g_is_suspended = 1)
	{
		Suspend
		g_is_suspended := 1
	}
	else
	{
		Suspend
		g_is_suspended := 0
	}
return



F1::
	g_space_spam_active := !g_space_spam_active
return



*space::
	
	if ( g_space_spam_active = 1 )
	{
		While GetKeyState("space","p")
		{
			SendEvent, {space down}
			;Sleep 1
			SendEvent, {space up}
			;Sleep 1
		}
	}
	else
	{
		SendEvent, {space down}
		While GetKeyState("space","p")
		{
			Sleep 1
		}
		SendEvent, {space up}
	}
return


#IfWinActive