Hi. I started with that template too. I found a better way:
Code:
~f::
WinGet, enbid, List, Earth
WinGet, active_id, ID, A
KeyWait f
IfWinActive Earth & Beyond 
{
Loop, %enbid%
{
Id:=enbid%A_Index%
if ( Id != active_id ) {
WinActivate, ahk_id %Id%
ControlSend,,f, ahk_id %Id% 
}
}
WinActivate, ahk_id %active_id%
Return
}
Granted. I designed it to work with earth and beyond, but really, change "Earth and Beyond" to "World of Warcraft" and it will work the same. It figures out how many clients you have, and touches all of them. Because of key-passthrough, it prevents pushing the button twice in the first client.