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
Requsting a script/help
Re: Requsting a script/help
settimer, sendq, 120000dor4420 wrote: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
loop{
send, {ctrl}
}
return
sendq:
send, q
return
let me know if that works
Re: Requsting a script/help
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
Some of my AHK programs: 3D Voxel Game - Platformer Game
GitHub projects : Image/Pixel scanning class - Direct2D overlay class
GitHub projects : Image/Pixel scanning class - Direct2D overlay class
Re: Requsting a script/help
Thank you very much!