! Smart Package Robot 's Mouse-Operations / BCS. - Button Click Special

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Mouse-Operations > Automated Clicks >

! Smart Package Robot 's Mouse-Operations / BCS. - Button Click Special

BCS. - Button Click Special

Previous Top Next


MiniRobotLanguage (MRL)

 

BCS. Command

Button Click Special

 

 

Intention

 

These command simulates a Left-Click with the Mouse in one of several ways.

The most important difference from BSC. to other Commands is, that it will watch if the Click "will do something".

And will click again if it did not do something. It's a Click in an built in Loop.

By default, BCS. want the Button or Window that we are clicking, to disappear.

To be closed, to have an invalid Window-Handle. As it happens when you close a Window.

 

BCS. will click, then wait a short time.

Next the Target button/window is checked on a reaction to the Mouse-click.

If there is no reaction, BCS. will click again, until there is an reaction.

Here is an example:

 

' Start the BCS.-Testapp from your Sample-Apps folder

STW.wct|45|PBWindowClass:0|BCS - Testform

SCW.wctid|45|Button|Install|1012|1

SFW.

BCS.

 

This is what you get:

 

graphic

 

BCS. just keeps clicking on "Install". Because the window does not disappear.

The counter on the right side increases each time, when the button is clicked, in this case it shows 53 and BCS. will not stop if we don't stop it.

 

For example, the Target window should disappear shortly after the Mouse-Click.

Or the text on a button can change after a mouse-click.

 

If the specified reaction of the window does not occur, BCS. will repeat the action.

BCS.is  somehow a "Mouse-click in a Loop".

 

BCS. is used in automated Software installations, to make sure things work as reliable as possible.

 

To test the features of BCS. you can use a provided BCS.-Testapplication in the "TestApps folder" in the installation folder.

 

 

Syntax

 

BCS.[Prototype ...][|Params ...]

 

 

 

Parameter Explanation

 

Prototype - (optional) prototype values

 

Prototype - (optional) prototype coordinates

Parameter - (optional) Parameter/timeout

 

Prototype can be omitted. Alternatively you can use these:

a - Button must become invisible or disabled

e - Button must become disabled

h - Parameter is Window-handle

p - clicks until Topwindow disappears

t - timeout in ms [+PARAMETER]

v - Button must become invisible

s - Button-Text must change (works only with Buttons where CFW. can read

    the text.)

n - Max-Count of Clicks before Timeout is generated.

    [+PARAMETER]

w - time between clicks in ms. Default is 100 ms

 

 

l - MLE. - Mouse Left Event Click is used

o - MLC.

i - MLI. - Like MLC. but much faster

c - CLW. - Close Window is used (Window-Message)

r - MRM. - Compatible right Click.

m - MLM. - Compatible like MLC. but faster due to a Jump.

u - MDC. Double Click

Mixed:

q - MLM. and MLE. Clicks are used.

 

Adding multiple Prototypes, all of the choosen Clicks were used.

Example: BCS.lr will do all two Clicks at the same time.

Option "q" will do exchange the two Click-Types and do one after the other.

 

Parameter - (optional) Parameter/timeout

 

Some Prototypes needs a Parameter, they are marked with [+PARAMETER].

 

 

 

Example

 

'***********************************************

' BCS.-Sample

'***********************************************

' This will create some messageboxes in the background.

FOR.§§LOP|1|8

PRR.

:ag

MBX.!

PRT.Ending.

END.

PRE.

NEX.

PAU.1

'-------------------------

' Here comes the BCS.

' This will click away the generated Msg.-Boxes

FOR.§§LOP|1|8

STW.t|Message

SCW.c|button

BCS.

' BCS.pw|250

NEX.

MBX.Ende

END.

'***********************************************

 

 

 

Remarks

 

BCS. is provided to make automated tasks as reliable as possible. If you experience problems in automated Setup tasks, especially, that buttons are clicked too often. Look if there are BCS. involved and replace them with MLE. or use other options.

 

BCS. can be used best, when the window that is clicked will and must disappear after the click. If this is not the case, BCS. may click a button to often and should maybe not used at that place.

 

 

 

Limitations:

 

-

 

 

 

See also:

 

    CAW. - Close-All-Windows

    BSC. - Button Special Click

    MLE. - Mouse-Left-Click Event

    DBC. - Do-Button-Clicks

    OPT. - Optional Settings