You need something like this:
Required at top of script for the code in the next section (or modify the "r" key section to fit your initialization):
Code:
WinGet, wowid, List, World of Warcraft
WinActivate, ahk_id %wowid1%
WinActivate, ahk_id %wowid2%
The "r" key.
Code:
~r::
IfWinActive, World of Warcraft
{
ControlSend, , {r Down}, ahk_id %wowid1%
ControlSend, , {r Down}, ahk_id %wowid2%
}
Return
~r Up::
IfWinActive, World of Warcraft
{
ControlSend, , {r Up}, ahk_id %wowid1%
ControlSend, , {r Up}, ahk_id %wowid2%
}
Return
Connect With Us