Code:// My AHK file I'm working on SetKeyDelay, 0, 0 WinGet, wowid, List, World of Warcraft #IfWinActive, World of Warcraft ; ------------------------------- ;Determine Main and Clone Windows ; ------------------------------- WinActivate, ahk_id %wowid1% MsgBox, 4,, Is this your WOW Main window? (press Yes or No) IfMsgBox Yes { idMain = %wowid1% idClone = %wowid2% } else { idMain = %wowid2% idClone = %wowid1% } ; ------------------------------- ; ------------------------------- ; ; ------------------------------- ~Up:: KeyWait Up ControlSend,, {Up}, ahk_id %idClone% Return ~LButton:: ControlSend,, {NumPadAdd}, ahk_id %idClone% Return ~=:: KeyWait = ControlSend,, {=}, ahk_id %idClone% Return ~-:: KeyWait, -, D ControlSend,, {-}, ahk_id %idClone% Return ~x:: KeyWait, x, D ControlSend,, {x}, ahk_id %idClone% Return ~Tab:: KeyWait, Tab, D ControlSend,, {Tab}, ahk_id %idClone% Return ~Shift:: KeyWait, Shift, D ControlSend,, {Shift}, ahk_id %idClone% Return ; ------------------------------- ; ------------------------------- ; Numeric Keys + Numpad Keys ; ------------------------------- ~1:: KeyWait 1 ControlSend,, {1}, ahk_id %idClone% Return ~2:: KeyWait 2 ControlSend,, {2}, ahk_id %idClone% Return ~3:: KeyWait 3 ControlSend,, {3}, ahk_id %idClone% Return ~4:: KeyWait 4 ControlSend,, {4}, ahk_id %idClone% Return ~5:: KeyWait 5 ControlSend,, {5}, ahk_id %idClone% Return ~6:: KeyWait 6 ControlSend,, {6}, ahk_id %idClone% Return ~7:: KeyWait, 7, D ControlSend,, {7}, ahk_id %idClone% Return ~8:: KeyWait, 8, D ControlSend,, {8}, ahk_id %idClone% Return ~9:: KeyWait, 9, D ControlSend,, {9}, ahk_id %idClone% Return ~0:: KeyWait, 0, D ControlSend,, {0}, ahk_id %idClone% Return ~NumPadDiv:: KeyWait, NumPadDiv, D ControlSend,, {NumPadDiv}, ahk_id %idClone% Return ~NumPadMult:: KeyWait, NumPadMult, D ControlSend,, {NumPadMult}, ahk_id %idClone% Return ~NumPadSub:: KeyWait, NumPadSub, D ControlSend,, {NumPadSub}, ahk_id %idClone% Return ~NumPadAdd:: KeyWait, NumPadAdd, D ControlSend,, {NumPadAdd}, ahk_id %idClone% Return ~NumPad1:: KeyWait, NumPad1, D ControlSend,, {NumPad1}, ahk_id %idClone% Return ~NumPad2:: KeyWait, NumPad2, D ControlSend,, {NumPad2}, ahk_id %idClone% Return ~NumPad3:: KeyWait, NumPad3, D ControlSend,, {NumPad3}, ahk_id %idClone% Return ~NumPad4:: KeyWait, NumPad4, D ControlSend,, {NumPad4}, ahk_id %idClone% Return ~NumPad5:: KeyWait, NumPad5, D ControlSend,, {NumPad5}, ahk_id %idClone% Return ~NumPad6:: KeyWait, NumPad6, D ControlSend,, {NumPad6}, ahk_id %idClone% Return ~NumPad7:: KeyWait, NumPad7, D ControlSend,, {NumPad7}, ahk_id %idClone% Return ~NumPad8:: KeyWait, NumPad8, D ControlSend,, {NumPad8}, ahk_id %idClone% Return ~NumPad9:: KeyWait, NumPad9, D ControlSend,, {NumPad9}, ahk_id %idClone% Return ~NumPad0:: KeyWait, NumPad0, D ControlSend,, {NumPad0}, ahk_id %idClone% Return ; ------------------------------- ; ------------------------------- ; F Keys ; ------------------------------- ~F1:: KeyWait, F1, D ControlSend,, {F1}, ahk_id %idClone% Return ~F2:: KeyWait, F2, D ControlSend,, {F2}, ahk_id %idClone% Return ~F3:: KeyWait, F3, D ControlSend,, {F3}, ahk_id %idClone% Return ~F4:: KeyWait, F4, D ControlSend,, {F4}, ahk_id %idClone% Return ~F5:: KeyWait, F5, D ControlSend,, {F5}, ahk_id %idClone% Return ~F6:: KeyWait, F6, D ControlSend,, {F6}, ahk_id %idClone% Return ~F7:: KeyWait, F7, D ControlSend,, {F7}, ahk_id %idClone% Return ~F8:: KeyWait, F8, D ControlSend,, {F8}, ahk_id %idClone% Return ~F9:: KeyWait, F9, D ControlSend,, {F9}, ahk_id %idClone% Return ~F10:: KeyWait, F10, D ControlSend,, {F10}, ahk_id %idClone% Return ~F11:: KeyWait, F11, D ControlSend,, {F11}, ahk_id %idClone% Return ~F12:: KeyWait, F12, D ControlSend,, {F12}, ahk_id %idClone% Return ; -------------------------------
Connect With Us