Setcheckbox and duplicate caption name

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
bnc1
Pro Scripter
Posts: 127
Joined: Sun Jul 31, 2005 5:10 pm

Setcheckbox and duplicate caption name

Post by bnc1 » Tue Jul 15, 2008 4:47 pm

I am working with a window that has multiple checkboxes with identical caption names. Each checkbox has a different function. Whenever I use the SetCheckbox> command it only works on the first occurence of the caption name. Is there any way short of using hard coded Mousemove> commands , to get to those other checkboxes with the same caption names ? I know, very poor windows setup, but I have no control over the application.

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Tue Jul 15, 2008 7:21 pm

Just a couple of thoughts. I have seen checkboxes that respond to a key press. For example, with DOS properties box set to the "Options" tab, pressing the "q" key will toggle the "QuickEdit mode" checkbox.

Or, this varies by application but perhaps there is a way to use SetControlText>.

On the other hand... contrary to recommended practices, my first choice is always mouse moves. They won't always work consistently but they are always the first thing I try.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts