Hi I'm trying to make a simple world of warcraft keycloning script that clones every key on the board (mostly) as well as modifier keys (shift, alt, ctrl). I'm currently having the hardest time figuring out how to use modifiers with this script. Baically I would like to be able to use all letters a-z and numbers 0-9 as well as mouse button 4 and 5 with each modifier. I don't know if I can simply put the modifier key into the code and put each other key separately or if i have to combine them in each instance, for example shift-a would translate into A in both windows.
Here is my current script for the modifier keys, at the present time it works only to make the main window be affected by modifiers (I hold shift and press R and the main window types it but the off window times absolutely nothing)
I'll also attach my full script (since it is too long)
Code:
~LShift:: KeyWait,LShift, D
{
ControlSend,, {LShift}, ahk_id %wowid1%
ControlSend,, {LShift}, ahk_id %wowid2%
Return
}
WinGet, wowid, list, World of Warcraft
~Lalt::
KeyWait, Lalt, D
IfWinActive, World of Warcraft
{
ControlSend,, {Lalt}, ahk_id %wowid2%
Return
}
WinGet, wowid, list, World of Warcraft
~Lctrl::
KeyWait, Lctrl, D
IfWinActive, World of Warcraft
{
ControlSend,, {Lctrl}, ahk_id %wowid2%
Return
}
WinGet, wowid, list, World of Warcraft
Also if anyone knows the code for the tilde key ( ~ ) as well as mouse button 4 and mouse button 5 that would be grand!
Connect With Us