Requsting a script/help

Get help with using AutoHotkey and its commands and hotkeys
dor4420
Posts: 2
Joined: 21 Nov 2017, 09:25

Requsting a script/help

21 Nov 2017, 09:28

Hello friends, I would like to request someone to create a script for me.
I need a loop that clicks on the key CTRL nonstop, and press Q every 2 minutes, if someone can create me one or guide me on how to create it, it would be wonderful
Georgie Munteer

Re: Requsting a script/help

21 Nov 2017, 09:59

Hello friends, I would like to request someone to create a script for me.
I need a loop that clicks on the key CTRL nonstop, and press Q every 2 minutes, if someone can create me one or guide me on how to create it, it would be wonderful
settimer, sendq, 120000
loop{
send, {ctrl}
}
return

sendq:
send, q
return

let me know if that works
User avatar
Spawnova
Posts: 339
Joined: 08 Jul 2015, 00:12
Contact:

Re: Requsting a script/help

21 Nov 2017, 11:04

Code: Select all

f1:: ;press f1 to start script
qTimer := a_tickcount + 1200 ;120,000 = 2 minutes (1 second =  1000 ms)
loop {
	send {ctrl}
	if (a_tickcount > qTimer) { ;if the current tickcount is larger than our 2 minute timer, send Q and reset timer
		send q
		qTimer := a_tickcount + 1200
	}
	sleep 50 ;small sleep between loops
}
return

f8::exitapp ;hotkey to kill program
f9::reload ;hotkey to reload program, essentially stops the loop
dor4420
Posts: 2
Joined: 21 Nov 2017, 09:25

Re: Requsting a script/help

21 Nov 2017, 12:03

Thank you very much!

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], blad4, Google [Bot], hymal7, Mipha, scriptors and 42 guests