Access radio button, check boxes value

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
pareshbhurke
Newbie
Posts: 7
Joined: Wed Jun 07, 2006 1:41 pm
Location: india
Contact:

Access radio button, check boxes value

Post by pareshbhurke » Thu Jun 08, 2006 4:39 pm

Hi there,

I am trying to read valued from controls present on windows form. I could get the information from Textbox, Button, Labels and dropdown etc.

But How to get values from Radio button or checkboxes? It is not showing up in "View system windows".
Even OCR approach does not help in this.

Please help!

Paresh
the rare 1

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Jun 08, 2006 5:07 pm

Use the GetCheckBox command.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

pareshbhurke
Newbie
Posts: 7
Joined: Wed Jun 07, 2006 1:41 pm
Location: india
Contact:

Post by pareshbhurke » Fri Jun 09, 2006 7:54 am

Thanks for that help. Since you have not answered solution for Radio button, is it so that its not possible to fetch values from Radio button?

Please help!

Paresh


mtettmar wrote:Use the GetCheckBox command.
the rare 1

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Jun 09, 2006 7:57 am

The answer is the same for checkboxes and radio buttons. Use the GetCheckBox command. From the help file:

GetCheckBox determines whether or not the given check box, or radio button, is checked.

While in Macro Scheduler hit the F1 key. You'll find a wealth of information appear before your eyes :-)
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

pareshbhurke
Newbie
Posts: 7
Joined: Wed Jun 07, 2006 1:41 pm
Location: india
Contact:

Post by pareshbhurke » Fri Jun 09, 2006 9:45 am

Hi,
I am sorry as I posted the note before referring to Help. From made assumptions by looking at the command name.
Anyway, I am trying following commands for accessing values from .NET windows forms application but its returning 0 though one radio button and 1 checkbox is already checked.

//Radio Button
CBX>%wtitle%,Yes,res
MessageModal>res
CBX>%wtitle%,No,res
MessageModal>res
//Checkbox
CBX>%wtitle%,Reading,res
MessageModal>res
CBX>%wtitle%,Cricket,res
MessageModal>res

Regards,

Paresh
mtettmar wrote:The answer is the same for checkboxes and radio buttons. Use the GetCheckBox command. From the help file:

GetCheckBox determines whether or not the given check box, or radio button, is checked.

While in Macro Scheduler hit the F1 key. You'll find a wealth of information appear before your eyes :-)
the rare 1

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Jun 09, 2006 10:46 am

Can you show us a screen shot of the window with the checkboxes/radio buttons?

When you hit the ALT key does one of the characters in the checkbox/radio button caption become underlined?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

pareshbhurke
Newbie
Posts: 7
Joined: Wed Jun 07, 2006 1:41 pm
Location: india
Contact:

Post by pareshbhurke » Fri Jun 09, 2006 2:58 pm

No man! There is no ALT key functionality. Its just plain YES and not &Yes.

Please guide!

Paresh
mtettmar wrote:Can you show us a screen shot of the window with the checkboxes/radio buttons?

When you hit the ALT key does one of the characters in the checkbox/radio button caption become underlined?
the rare 1

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