1. Starting Guide

<< Click to Display Table of Contents >>

Navigation:  1. Starting Guides > 1.9.1 Types of controls >

1. Starting Guide

1.9.1 Types of controls

Previous Top Next


Starting Guide

 

Radio Button Control

What controls do we have to do with?

 

clip0554

 

Exploring the Radio Button Control

The control we're focusing on now is the Radio Button Control, also known as an "Option Control".

This is because it allows you to select one option from several available choices.

Let's take a look at a typical use case for this control.

For instance, you might encounter a Radio Button Control when presented with an agreement where you can choose to accept or decline.

 

 

graphic

 

In this case the window class of the Option control is "TNewRadioButton". As window classes can be named freely by the programmer of an application, the window class can differ from this.

 

graphic

 


 

clip0555

 

Interacting with the Radio Button Control

 

Here's a script that checks the Option Control:

 

STW.ct|TWizardForm|Setup - UltraVNC

SCW.ct|TNewRadioButton|I &accept the agreement

BTC.1

 

Simply changing the number to

 

BTC.0

 

would have the opposite effect. While some Radio Button Controls allow you to uncheck the buttons using the BTC.0  command, others might not.

In such cases, you're limited to simulating a standard mouse click to select one of the radio buttons.

 

You might wonder why it's called a "Radio Button Control". The term "Radio Button" harks back to old radios where pressing one button would automatically disengage any other pressed button. The same principle applies here. Once you click on any of these buttons, the others will switch off.

 


 

See also

 

Here is a list of commands that are often used with Radio Button controls:

 

    BTC. - Button-Check

    GBC. - Get-Button-Check

    MLI - Mouse Left Click quIckly (Invinsible)

    MLM - Mouse Left click Move (Invinsible)

    SAO. - Search Accessible Object

    !. NAV - NAVigate in Dialog

    MOS. - Mouseless Object Select