Reading the state of a checkbox.
Hi all,
I'm using version 4.0.1 (awesome!), and I'm trying to make sure that a checkbox in an application dialog is always set before I close the dialog. I've included a screenshot of the dialog for reference.
Unfortunately, the keyboard shortcuts (spacebar or the letter 'C' in this case) will only TOGGLE the checkbox - there's no shortcut to force a checkbox to one specific value or the other.
So I figured I'd just use the "Get Checkbox Status" command and toggle the state if it wasn't checked.
The checkbox is one of five in a group called "Search Items". When I use the "Get Checkbox Status" command and capture the exact position of the checkbox, the "Caption" returned to Automation Anywhere is the name of the GROUP, not the caption on the checkbox. So I can't actually read the value of the checkbox itself.
Does anyone have any suggestions on how to get at the checkbox itself? Any help is much appreciated!
|