Quote Originally Posted by 'Freddie',index.php?page=Thread&postID=199464#post 199464
Usually when people ask about broadcasting they want to send all key events (press and releases) to various windows. But I'm not sure if that's what you're asking because your script seems to be more concerned with turning hotkeys on and off. Since I'm not sure I'll answer both questions.
Lets see if I can be a bit clearer.

I need to operate in three different modes:
  1. Pass a specified list of keys to my windows
  2. Pass all keys to my windows
  3. Pass keys only to the window with focus


And I need to be able to easily switch between these modes. The ScrollLockOn in my script switches between mode 1 and mode 3. The Pause key in my example script switches mode 2 on and off. So for mode 1 behaviour I would have a list with W, A, S, D excluded but when I switch to mode 2 I need to pass W, A, S, D.

In WoW I frequently use the command line when doing quests, for instance if the quest gives you an item called Hollow Skull and requires you to use it somewhere I would type on the command line "/use Hollow Skull" and I'd like to type that in all windows. When I am moving with my other characters on follow I don't want to pass w, a, s, d however.