Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: checkbox
Normally I use the Control Manager to check boxes (have it done exessively), but the checkboxes in this special application have neither names nor IDs nor shortcuts nor can they be identified by the Classnames.
To solve the problem, I modified your Control Analysis script to run through the entire hierarchy of controls to get the actual handles of any control by starting from the main window or any of the 3 (!) IDs the autor of the program invested in a rave of luxury.
But unfortunately the knowledge of the hierarchy does not tell me, which of the about 50 controls is the one I need, and a cCheckBox(handle, -1) turned out 0 on every control, even if the checkbox in question was checked. Any ideas?
If you type a minus sign does it clear. If you type a - sign, does that uncheck it, and if you type + sign does that check it?
If you need it unchecked, you don't really need to know the state is in. Rather, you can make sure you set it to unchecked.
On *most* checkboxes, changing the focus to it and then typing a minus sign will clear the checkbox no matter what its state is.
Let's say your checkbox name has an underline character like C (in which case the hotkey ALT-C can take you to the checkbox).
;To toggle the checkbox SendKey("!c")After you click on an unknown checkbox you can set it with...
SendKey("{+}") ; note CURLY braces in middleand clear it with
SendKey("-")
There is a hot key that directs the focus directly to the checkbox control and will toggle it, BUT the plus and minus keys do not set and clear it respectively. I don't umderstand why this control is not behaving. I am thinking of checking the registry for the key that this checkbox may set.
M$ is notorious for finding something that they like, buying out the original vendor and then selling the product as their own. Sort of a reverse-cookoo's egg scenario.
Some checkbox looking controls are not true checkboxes.
Some applications update the registry or ini files when you change the control. That would be handy.
Some applications only update the registry or ini files on exit, so then you cannot tell the current state of the control.
Article ID: W12493
Filename: Check a Checkbox Not Listed in Controls.txt
File Created: 1999:09:17:14:37:10
Last Updated: 1999:09:17:14:37:10