Script that presses enter every ~45 seconds, loops infinitely, and has a stop key

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Mingo
Posts: 2
Joined: 23 Jun 2018, 03:24

Script that presses enter every ~45 seconds, loops infinitely, and has a stop key

23 Jun 2018, 03:31

Hi, I'm extremely new to AutoHotkey, and downloaded it so that I could farm xp in Speedrunners, and to do that I need a script that does exactly what the title implies. Could someone please write this for me?

Thanks so much,

Mingo
User avatar
divanebaba
Posts: 805
Joined: 20 Dec 2016, 03:53
Location: Diaspora

Re: Script that presses enter every ~45 seconds, loops infinitely, and has a stop key

23 Jun 2018, 05:34

Hello Mingo.
Welcome to the AHK-forum. As our newest member you get your free gift, a full functional script, designed nearly exactly as you have desired. :mrgreen: :mrgreen:

Code: Select all

$Pause::					; Pause-key starts and stops 
Toggle := !Toggle 			; advanced toggling technique
if (Toggle)
Settimer, Sendkey, 45000 	; set label "Sendkey" as timer with 45 seconds intervall
else
Settimer, Sendkey, off 		; deactivates timer
return

Sendkey: 					; Label, used as timer
sendinput {Enter}			; sending Enter-key
return
If you have any questions or if this script is not exacly, what you have desired, please give notice.
Otherwise, have fun with AutoHotkey. :D :D
Einfach nur ein toller Typ. :mrgreen:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: drani, Google [Bot], montie, Nerafius and 233 guests