[code:1]killbroadcast = 0
WinGet, wowid, List, World of Warcraft

~Pause::
KeyWait, Pause, D
If(%killbroadcast% = 0)
{
killbroadcast = 1
}
else
{
killbroadcast = 0
WinGet, wowid, List, World of Warcraft
}
Return

~1::
KeyWait 1, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, 1, ahk_id %target_window%
}
}
}
}
Return

~2::
KeyWait 2, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, 2, ahk_id %target_window%
}
}
}
}
Return

~3::
KeyWait 3, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, 3, ahk_id %target_window%
}
}
}
}
Return

~4::
KeyWait 4, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, 4, ahk_id %target_window%
}
}
}
}
Return

~5::
KeyWait 5, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, 5, ahk_id %target_window%
}
}
}
}
Return

~6::
KeyWait 6, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, 6, ahk_id %target_window%
}
}
}
}
Return

~7::
KeyWait 7, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, 7, ahk_id %target_window%
}
}
}
}
Return

~8::
KeyWait 8, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, 8, ahk_id %target_window%
}
}
}
}
Return

~9::
KeyWait 9, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, 9, ahk_id %target_window%
}
}
}
}
Return

~0::
KeyWait 0, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, 0, ahk_id %target_window%
}
}
}
}
Return

~-::
KeyWait -, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, -, ahk_id %target_window%
}
}
}
}
Return

~=::
KeyWait =, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, =, ahk_id %target_window%
}
}
}
}
Return

~F1::
KeyWait F1, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, {F1}, ahk_id %target_window%
}
}
}
}
Return

~F2::
KeyWait F2, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, {F2}, ahk_id %target_window%
}
}
}
}
Return

~F3::
KeyWait F3, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, {F3}, ahk_id %target_window%
}
}
}
}
Return

~F4::
KeyWait F4, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, {F4}, ahk_id %target_window%
}
}
}
}
Return

~F5::
KeyWait F5, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, {F5}, ahk_id %target_window%
}
}
}
}
Return

~F6::
KeyWait F6, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, {F6}, ahk_id %target_window%
}
}
}
}
Return

~F7::
KeyWait F7, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, {F7}, ahk_id %target_window%
}
}
}
}
Return

~F8::
KeyWait F8, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, {F8}, ahk_id %target_window%
}
}
}
}
Return

~F9::
KeyWait F9, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, {F9}, ahk_id %target_window%
}
}
}
}
Return

~F10::
KeyWait F10, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, {F10}, ahk_id %target_window%
}
}
}
}
Return

~F11::
KeyWait F11, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, {F11}, ahk_id %target_window%
}
}
}
}
Return

~F12::
KeyWait F12, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, {F12}, ahk_id %target_window%
}
}
}
}
Return

;~a::
;KeyWait a, D
;WinGet, Active_Window, ID, A
;IfWinActive, World of Warcraft
;{
; If(%killbroadcast% = 0)
; {
; Loop, %wowid%
; {
; target_window := wowid%A_index%
; If (Active_Window <> target_window)
; {
; ControlSend,, a, ahk_id %target_window%
; }
; }
; }
;}
;Return

~b::
KeyWait b, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, b, ahk_id %target_window%
}
}
}
}
Return

~c::
KeyWait c, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, c, ahk_id %target_window%
}
}
}
}
Return

;~d::
;KeyWait d, D
;WinGet, Active_Window, ID, A
;IfWinActive, World of Warcraft
;{
; If(%killbroadcast% = 0)
; {
; Loop, %wowid%
; {
; target_window := wowid%A_index%
; If (Active_Window <> target_window)
; {
; ControlSend,, d, ahk_id %target_window%
; }
; }
; }
;}
;Return

;~e::
;KeyWait e, D
;WinGet, Active_Window, ID, A
;IfWinActive, World of Warcraft
;{
; If(%killbroadcast% = 0)
; {
; Loop, %wowid%
; {
; target_window := wowid%A_index%
; If (Active_Window <> target_window)
; {
; ControlSend,, e, ahk_id %target_window%
; }
; }
; }
;}
;Return

~f::
KeyWait f, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, f, ahk_id %target_window%
}
}
}
}
Return

~g::
KeyWait g, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, g, ahk_id %target_window%
}
}
}
}
Return

~h::
KeyWait h, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, h, ahk_id %target_window%
}
}
}
}
Return

~i::
KeyWait i, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, i, ahk_id %target_window%
}
}
}
}
Return

~j::
KeyWait j, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, j, ahk_id %target_window%
}
}
}
}
Return

~k::
KeyWait k, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, k, ahk_id %target_window%
}
}
}
}
Return

~l::
KeyWait l, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, l, ahk_id %target_window%
}
}
}
}
Return

~m::
KeyWait m, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, m, ahk_id %target_window%
}
}
}
}
Return

~n::
KeyWait n, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, n, ahk_id %target_window%
}
}
}
}
Return

~o::
KeyWait o, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, o, ahk_id %target_window%
}
}
}
}
Return

~p::
KeyWait p, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, p, ahk_id %target_window%
}
}
}
}
Return

;~q::
;KeyWait q, D
;WinGet, Active_Window, ID, A
;IfWinActive, World of Warcraft
;{
; If(%killbroadcast% = 0)
; {
; Loop, %wowid%
; {
; target_window := wowid%A_index%
; If (Active_Window <> target_window)
; {
; ControlSend,, q, ahk_id %target_window%
; }
; }
; }
;}
;Return

~r::
KeyWait r, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, r, ahk_id %target_window%
}
}
}
}
Return

;~s::
;KeyWait s, D
;WinGet, Active_Window, ID, A
;IfWinActive, World of Warcraft
;{
; If(%killbroadcast% = 0)
; {
; Loop, %wowid%
; {
; target_window := wowid%A_index%
; If (Active_Window <> target_window)
; {
; ControlSend,, s, ahk_id %target_window%
; }
; }
; }
;}
;Return

~t::
KeyWait t, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, t, ahk_id %target_window%
}
}
}
}
Return

~u::
KeyWait u, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, u, ahk_id %target_window%
}
}
}
}
Return

~v::
KeyWait v, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, v, ahk_id %target_window%
}
}
}
}
Return

;~w::
;KeyWait w, D
;WinGet, Active_Window, ID, A
;IfWinActive, World of Warcraft
;{
; If(%killbroadcast% = 0)
; {
; Loop, %wowid%
; {
; target_window := wowid%A_index%
; If (Active_Window <> target_window)
; {
; ControlSend,, w, ahk_id %target_window%
; }
; }
; }
;}
;Return

~x::
KeyWait x, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, x, ahk_id %target_window%
}
}
}
}
Return

~y::
KeyWait y, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, y, ahk_id %target_window%
}
}
}
}
Return

~z::
KeyWait z, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, z, ahk_id %target_window%
}
}
}
}
Return

~Space::
KeyWait Space, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, {Space}, ahk_id %target_window%
}
}
}
}
Return

~/::
KeyWait /, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
killbroadcast=1
}
}
Return

~Enter::
KeyWait Enter, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% <> 0)
{
killbroadcast = 0
}
else
{
killbroadcast = 1
}
}
Return

~NumpadEnter::
KeyWait NumpadEnter, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% <> 0)
{
killbroadcast = 0
}
else
{
killbroadcast = 1
}
}
Return

~Backspace::
KeyWait Backspace, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, {Backspace}, ahk_id %target_window%
}
}
}
}
Return
[/code:1]

Enjoy, its most of the keys