Results 1 to 7 of 7

Thread: unable to 'listen' to checkbox I created

  1. #1
    Join Date
    Jun 2005
    Location
    Minnesota, USA
    Posts
    10

    Default unable to 'listen' to checkbox I created

    Hello experts, I need help.

    I want to have Girder 4 send keystrokes to another computer ONLY when a checkbox is checked. I can get this to work no problem if I have girder watch the 'enable' checkbox within Girder, or if I have it watch a checkbox in any other application.

    BUT, I want to create my own application, where the checkbox is the only think in the application window. I have created on in C# and VB (both using Microsofts Visual Studio or Visual C programs)

    I can have the "Is checkbox checked" event look at the checkbox I created, but nothing ever seems to happen. It never 'sees' it as being checked.

    I have created a little script in my application that will display text that changes depending on if the checkbox is checked or not, just to test it. But Girder doesn't seem to be listening, or I haven't done something to my checkbox to make it 'official'.??

    Any ideas?

    Here is my situation, in case you have any better solutions than having a checkbox onscreen.

    I am syncing multiple computers and sending the spacebar command from the master computer to all other computers. The spacebar command will only be sent if a certain child window is in focus, any other time - no keystroke will be sent.

    I have to be able to turn this feature on and off. So that even if the child window is in focus, Girder will not send keystrokes if I don't want it to. (I need the computers to be synced, then not synced, then synced again, etc...)

    My idea was to create an application window that will always be TopMost, this application window will have a single checkbox in it. I will set Girder to watch that checkbox, and if it is checked, then it will send the spacebar commands. But when unchecked, no commands will be sent.

    Once I get that working, I want to have a midi file check and uncheck the checkbox - but I can handle that, I just can't get Girder to pay attention to my checkbox. Is there something special I need to do?

  2. #2
    Join Date
    Jun 2005
    Location
    Minnesota, USA
    Posts
    10

    Default

    anybody?

    Mike, Ron? - What specifically is Girder looking at when it looks to see if a checkbox is checked or not? Is there a special variable I need to create in the app that holds a boolean value or something?

    Any help would be appreciated. Or, any other ideas.

  3. #3
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    i wonder about just having g4 drawing a small osd that you could click on to toggle the send keystroke option?

  4. #4
    Join Date
    Jun 2005
    Location
    Minnesota, USA
    Posts
    10

    Default

    Thanks for the idea Mike,

    Is this something that I could do just by reading the manual? Or do you have any tips?

    I would need this checkbox to float on top of a different program window (topmost), but still give the other program keyboard focus. Is this possible with a G4 OSD?

    Thanks again

  5. #5
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,349

    Default

    Once you click on the osd the other program will loose the focus. But the osd can be topmost. (and I think it is).

    Back to your original question, so you are able to make the checkbox checking work with other applications, just not your own? If that is the case are there more checkboxes in that window, or is it just that one, any hidden ones?
    Ron
    No support through PM

  6. #6
    Join Date
    Jun 2005
    Location
    Minnesota, USA
    Posts
    10

    Default

    Yes, if I have Girder listen to the 'enable' checkbox within Girder, or have it listen to any other checkbox from any big software I have installed on the computer - it does recognize the check/uncheck. But not from the simple application I created.

    I will attach the test.exe application. All it is, is a single checkbox that will appear in the upper right hand corner of your screen labeled
    "Send Sync Commands"

    The application is transparent and has no menu or anything, this is so that is seamlessly will lay over MediaShout (the application I'm controlling).

    At first, this exe started out as just a simple windows form application, and it didn't work with Girder. So I figured I would keep working on making it look the way I wanted it to look - even though it didn't work with Girder.

    The only way to close it however (since there is no control menu) is to Alt-F4 it.

    I noticed however, when you use the checkbox finder within Girder (or whatever it's called) to locate a checkbox that you want to listen to, the checkbox on my app doesn't look the same. The child class is something like Windows.forms..blah blah blah...

    Thanks for your time and assistance.
    Attached Files Attached Files

  7. #7
    Join Date
    Jun 2005
    Location
    Minnesota, USA
    Posts
    10

    Default

    I suppose however, that Girder could be scripted to give focus to a certain window whenever the checkbox (G4 OSD) was clicked or unclicked?

Posting Permissions

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