I've gotten as far as creating a script and then calling it as an event which does send it to the secondary window, but I can't figure out how to NOT send it to the primary.
Code: Select all
function castheal(event, arg)
send("c 'cure light' "..arg)
end
-- Register the event handler.
registerAnonymousEventHandler("multiboxheal", "castheal")
^heal (\w+)
which sends:
raiseGlobalEvent("multiboxheal", matches[2])
When i type "heal bob" in the main window, I was hoping to get c 'cure light' bob in the second window and nothing in the first.
Instead, I'm getting the c 'cure light' bob in the second window, but I am sending "heal bob" to the first.
How do I stop the "heal bob" being sent?