Control specific operations

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Control specific operations >

Control specific operations

BTC. - Button-Check

Previous Top Next


MiniRobotLanguage (MRL)

 

BTC. Command

Button Check

 

Compatible Engine_01Direct Engine_01

 

Intention

 

Check Radio-Buttons or Checkmarks, which have been previously located by SCW. or other commands like SAO.

 

graphic

This could be a 1.9.1.4 Checkmark Controll.

 

' To check a checkmark, use

BTC.1

 

' To uncheck a checkmark, use

BTC.0

 

These commands use the MLE.-command (direct-engine). If the just do not work, you can make the command to use the MLI. (compatible engine) by adding a 3 to that number.

 

' To check a checkmark, (compatible engine) use

BTC.4

 

' To uncheck a checkmark, (compatible engine) use

BTC.3

 

You can make the command to use the MLC.-command (compatible engine) by adding a 6 to that number.

 

' To check a checkmark, (compatible engine) with Mouse use

BTC.6

 

' To uncheck a checkmark, (compatible engine) with Mouse use

BTC.7

 

 

 

 

 

Syntax

 

BTC.P1

 

 

Parameter Explanation

 

P1 - Numeric parameter, represents the target-status of the option button.

 

0,3 or 6 - Uncheck

1,4 or 7 - Check

2,5 or 8 - Set to "indeterminate" (3-State checkmarks Only)

 

 

 

 

Example

 

' This Example will check a checkmark and uncheck it.

' Please note that you need to have such a window.

DBM.2

STW.t|sample

SCW.ct|button|check1

' check the checkmark

BTC.1

' uncheck the checkmark

BTC.0

 

DMP.

END.

 

 

 

 

Remarks

 

For Treeview-Checkmarks use the TVI. or TVF.-command with the "d" or "b"-Flag.

 

 

Limitations:

 

Works only in standard Controls. Does not work in "Ownerdrawn" or Java Checkmarks. May work or not in in Browser and Office. Use Mouse-Clicks (MLC. MOS.etc.) in use-cases.

"Intermediate state" may not in for all programs work as expected. Use normal Mouse-Clicks (MLE., MLI. etc.) in such cases.

 

 

 

See also:

 

  GBC. - Get-Button-Check

  TVF. - Tree View Find

  TVI. - Tree View Invisible

  AGR. - Accessibility Get Rect