Log in

View Full Version : [HotKeyNet] Toggle broadcast indicator (kc style)



zenga
09-12-2010, 12:27 AM
Finally got up to rewriting my xdotool broadcasting script under linux. However I use HKN to model, to see how certain functions interact and then i try to implement them in my script. So far so good, still a lot of work before i consider it ready though.

Anyways, something that bothers me a lot with HKN is that I never know if broadcastmode is toggled or not. Keyclone has an icon /logo at the top center of the screen that stays on top all the time. No way to forget your broadcast status. I know HKN has the system tray icon, but i play full screen (maximized), so no the system tray is not visible.

My question: does HKN has a similar function, or has anyone implemented that into a script? Or is there any external script/tool for windows that could trigger an icon everytime i click pause? Maybe people have solved this problem in another way?

Like to hear how / what you have come up with.

Cheers

Freddie
09-12-2010, 06:01 AM
HotkeyNet has a bunch of functions for creating so-called "buttons". These buttons are clickable rectangles of any size that can display a color or a picture from a file. You can use those functions to make any sort of indicator you like. The indicator will be clickable and can trigger a hotkey or command but you don't need to use it that way.

(You can also make panels of buttons.)

Each of the functions is individually documented (I think there's about 12 or 15 in the familly) but I unfortunately I never got around to writing a tutorial for them.

http://hotkeynet.com/ref/createpicturebutton.html

http://hotkeynet.com/ref/createcoloredbutton.html

Buttons will get displayed if your game is maximized but they will not get displayed if the game is in full-screen mode. Maximized and full-screen are two different things. Full screen is an exclusive mode for one app and the OS disables its window manager, preventing HotkeyNet's buttons from appearing.

Edit: With many games (including WoW) you can remove its window frame and maximize it, and it can look exactly like full-screen mode depending on task bar settings. But from the OS's point of view it's a different thing.