#SingleInstance, Force
#Persistent
#NoEnv
^1::WinGet, active_id, PID, A
PgDn::
loop
{
ControlSend, , {2}, ahk_pid %active_id%
Sleep 1000
}
^1: ^ = Ctrl. Press Ctrl + 1 on the active window.
PgDn: PgDn to start the loop.
2: Key that is pressed on the keyboard
1000: Time in ms.
Click here for...