View Full Version : Is it possible to set checkbox to known state?
Ron
October 13th, 2002, 01:55 PM
it is possible to set or unset a checkbox with the sendmessage plugin. If you are interested I can lookup the numbers that you need. Or you can try to look it up your self,.. you would find it in the win32 api under buttons/checkboxes -> CB_CHECKED (or something similar)
-Ron
Ron
October 13th, 2002, 01:55 PM
Yeah its in the plans :smile:
Glad it worked!
genixia
October 13th, 2002, 01:55 PM
Newbie alert....
Ok, I need my CMI8378 based mixer settings 'girderised', but have hit a stumbling block.
I need to be able to control 4 checkboxes to switch between spdif out, spdif loopback, and multichannel out. I know that I could go though the pain of using states and the registers to maintain their state internally, and set them appropiately, but the state cold get out of sync if anyone changes the setting manually. I am also not sure what happens to registers upon powerdown.
What would be really easy is if I could just tell girder to either set or unset the checkboxs for each mode, without caring what their previous settings were, but I cannot see a way to do this. Is it possible?
An alternative is if I can read the state of the checkbox and conditionally toggle it, but again, I can't see a way to do this either.
A third possibility is if I can read/write the registry entry directly - then I could either do conditional settings as above or bypass the mixer application entirely. The problem I see here is that I'm running Win2k and I don't have Administrator priviledges set for my day to day user. (And neither do I really want to..). So I don't think I can just load a .reg file to do all the settings.
Can anyone help?
genixia
October 13th, 2002, 01:55 PM
Thanks Ron!
SendMessage really is a powerfull plugin.
I used google to find the parameters:
SETCHECK message = 241
UNCHECKED =0, CHECKED=1
lparam=0
Ron, when you rewrite Girder (4.0) I think that this message would be really useful to have as part of the core functionality (similar to button 'click'). I think that many non-windows programmers could make use of it...
vfrjim
January 24th, 2003, 07:29 PM
n00bie here, I need the SendMessage Plug in to do EXACTLY what Genixia wanted to do, I need to uncheck and check a checkbox on my mixer for SPDIF in and out, could you explain in detail maybe on how to do it and a link to where to download the plugin,
I tried doing it by capturing the event, but since the mixer wasn't open, it could not find the window, but my command worked.
Thanks,
Jim
vfrjim
January 25th, 2003, 02:06 PM
Ron, can you help me with this?
Thanks,
Jim
vfrjim
January 25th, 2003, 08:23 PM
Well, I sort of figured it out but I am having a problem, maybe someone can help. I was able to set up the checkboxes so that they get checked and unchecked BUT, it does not actually trigger the event eventhough the boxes are checked or unchecked but they work fine if I use my keyboard and check and uncheck the box, why would the event not function correctly eventhough the the checkmark gets entered correctly?
Thanks,
Jim
vfrjim
January 27th, 2003, 09:19 AM
anyone?
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.