Combining three scripts into one exe

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
jasonddgs1

Combining three scripts into one exe

28 Jun 2017, 11:49

Hey, I was wondering if it's possible to combine:

Code: Select all

#Persistent
SetTimer, PressTheKey, 6000
Return

PressTheKey:
Send, {r}
Return

#Persistent
SetTimer, PressTheKey, 600
Return

PressTheKey:
Send, {f}
Return

#Persistent
SetTimer, PressTheKey, 600
Return

PressTheKey:
Send, {f}
Return

#p::Pause
into one script without it giving me a duplicate error. Thank you in advance. :)
Mod edit: Added code tags.
Riki81
Posts: 7
Joined: 27 Jun 2017, 11:58

Re: Combining three scripts into one exe

28 Jun 2017, 14:56

Code: Select all

#Persistent

a:=A_TickCount
b:=A_TickCount
Loop
{
	if (A_TickCount-a > 600)
	{
		Send, {f}
		Send, {f}
		a:=A_TickCount
	}
	Sleep, 20
	if (A_TickCount-b > 6000)
	{
		Send, {r}
		b:=A_TickCount
	}
}

#p::Pause

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: doodles333 and 283 guests