Close
Showing results 1 to 4 of 4

Hybrid View

  1. #1

    Default

    Quote Originally Posted by Ghallo View Post
    Sorry to necro this thread, but this is exactly what I wanted to do... with 1 addition.

    How could I "add a button" as I've seen it described by Freddie so that:
    When I toggle All keys on it says "Broadcasting: All" and then disappears after 2 seconds
    When I toggle just regular keys it says "Broadcasting: Default" and then disappears after 2 seconds
    When I toggle keybroadcasting off it says "Broadcasting: Off" and then disappears after 2 seconds
    This is what I had so far:
    <CreateColoredButton Button1 5 5 120 20 0xFF0000 0x000000 "Broadcasting: All">
    <CreateColoredButton Button2 5 25 120 20 0x00FF00 0x000000 "Broadcasting: Default">
    <CreateColoredButton Button3 5 45 120 20 0x303030 0xF00000 "Broadcasting: Off">

    Also ... would it be possible to increase the font size? I'd like this to be big and obvious. Any help would be appreciated!
    Create the buttons only once. If you do this inside a command called AutoExec, HotkeyNet will do this when it loads the script.

    To make a button appear or disappear, use TargetButton followed by either ShowWin or HideWin.

    With regard to the two-second display period, since HotkeyNet runs all hotkeys in the same thread, it might be better to define two hotkeys with the same trigger. The second hotkey is a <HotkeyUp>. The first hotkey performs the toggle and displays a button. The second hotkey (the one that gets triggered when you release your finger) hides the button.

    There's no command for font size but you can make a picture (for example, a gif file) with any appearance you like including any font size you like, and use it on a picture button. To do this, create the button with CreatePictureButton.

    All these things are explained on HotkeyNet's reference pages. You can follow the links at the bottom of this page:

    http://hotkeynet.com/ref/createbutton.html
    Last edited by Freddie : 12-13-2010 at 07:58 PM
    �Author of HotkeyNet and Mojo

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •