View Full Version : Dual-Boxing on WoW - Duplicating Keystrokes

Aug 27, 2007, 09:53 AM
i wanted to know how can i, by pressing one key, send the same key information, to two different WoW clients. Windows has the AutoHotkey program, and i thought i could to the same with AppleScript. However, AHK is an actual program, that reads the scripts. here is an example of the script to send the key "2" to two different wow clients:
WinGet, wowid, List, World of Warcraft

KeyWait 2
IfWinActive, World of Warcraft
ControlSend,, 2, ahk_id %wowid1%
ControlSend,, 2, ahk_id %wowid2%
now, how can i do that in applescript, and in a way to be always active?

Aug 27, 2007, 01:41 PM
Check out this (http://forums.macrumors.com/showthread.php?t=92086) old thread, which contains some sample code.

Aug 27, 2007, 02:21 PM
thank you! that helpe alot.
i came up with this script:

tell application "System Events"
if application "World of Warcraft" is front and (keystroke "1" is press) then
tell application "World of Warcraft1"
keystroke "1"
end tell
end if
end tell

now, does that do what i want? and how can i make that "eternal", something like a daemon?