Code: Select all
DetectHiddenWindows, On
ifwinactive, ahk_exe msedge.exe
Loop
{
Loop, 10
if WinExist("ahk_exe msedge.exe")
{
ControlSend, , {2}, ahk_pid 3652
}
Sleep, 1000
}
5::
Pause
return
Q::
{
Sleep, 3000
if WinExist("ahk_exe msedge.exe")
ControlSend, , !+1, ahk_pid 3652
Sleep, 3000
if WinExist("ahk_exe msedge.exe")
ControlSend, , !+2, ahk_pid 3652
Sleep, 3000
if WinExist("ahk_exe msedge.exe")
ControlSend, , !+3, ahk_pid 3652
Sleep, 3000
if WinExist("ahk_exe msedge.exe")
ControlSend, , !+4, ahk_pid 3652
Sleep, 3000
if WinExist("ahk_exe msedge.exe")
ControlSend, , !+5, ahk_pid 3652
return
}
+1::
{
if WinExist("ahk_exe msedge.exe")
ControlSend, , 1, ahk_pid 3652
Sleep, 800
ControlSend, , {F2}, ahk_pid 3652
return
}
Z::
{
if WinExist("ahk_exe msedge.exe")
ControlSend, , {3}, ahk_pid 3652
return
}
[Moderator edit: Added [code][/code] tags. Please use them yourself when posting code.]