<< Click to Display Table of Contents >> Navigation: 3. Script Language > Control specific operations > Control specific operations |
MiniRobotLanguage (MRL)
GBC. Command
Get Button Check
Intention
Get the status of system's check-mark or radio-button controls.
Syntax
GBC.[P1]
Parameter Explanation
P1 - (optional) Variable to store the checkmark-state to. If omitted, TOS is used.
Example
'*************************************************
' GBC- Sample #1
'*************************************************
' This Example will read the state of a checkmark
' that has been located as a window.
'
' This first line will just test if the TestApp is already
' running and must not be started.
STW.Xwtg|0|TestApp|over
' We start the TestApp
EXE.?exepath\Sample Apps\TestApp_01.exe
' We can locate it directly with the PID
STW.p|#pid#
:over
SCW.nct|1|Button|Option122
GBC.
MBX.The state of the checkmark is $$000
ENR.
'*************************************************
' GBC- Sample #2
'*************************************************
' This Example will read the state of a checkmark
' that has been located using SAO. (accessibility).
'
'
' This first line will just test if the TestApp is already
' running and must not be started.
STW.Xwtg|0|TestApp|over
' We start the TestApp
EXE.?exepath\Sample Apps\TestApp_01.exe
' We can locate it directly with the PID
STW.p|#pid#
:over
SAO.rn|45|122
GBC.$$RES
MBX.The state of the checkmark is $$RES
ENR.
Remarks
-
Limitations:
-
See also: