Popup-Handling

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > PopUp - Handling >

Popup-Handling

DBC. - Do-Button-Clicks

Previous Top Next


MiniRobotLanguage (MRL)

 

DBC. Command

Do Button Clicks

 

 

Intention

 

DBC. is a Parallel running Button-Clicker Robot.

 

It will click on PopUp-Messageboxes that may or may not appear during automated installations.

 

Imagine a automated Setup-Script. Sometimes a Messagebox appears "This folder already exists". The problem in such cases is, that you have to deal with Messageboxes, which:

 

    appear but not always

    can appear more often then once (10 or 100 times?)

    may not appear at all

    may have slightly varying texts

    must be clicked or closed

 

The solution to this problem is the DBC.-command.

 

It runs in the background and when a specified message box appears, the DBC. will click or close it. If the Messagebox will not appear, the DBC. will have no effect on the running script.

 

If the messagebox will come 100 time, it will be clicked 100 times.

 

DBC. is a special sort of background-task and can only be accessed with the DBC. - command.

 

 

 

Syntax

 

 

DBC.P1|P2|P3|P4[|P5|P6..|P10]

 

 

Parameter Explanation

 

Leave unneeded Parameters empty.

 

P1 - a  = add DBC: start DBC. task

    r  = remove DBC: remove DBC. task

 

P2 - Variable: returns the DBC.-Handle for later removing

 

P3 - Title-Text of the Top-Window of the messagebox

 

P4 - Button-Text of the button to click on

 

P5 - Text of a static text inside the Messagebox

 

P6 - PID - Process ID of Process behind the Messagebox

 

P7 - action-code, normally

    1 = MLE. (Direct Engine Click)

    2 = close TopWindow

    4 = MLM. (compatible Engine)

    8 - MLI. (compatible Engine)

   16 - Close spezial

 

P8 - class of the Top-Window, if omitted "#32770" is default

 

P9 - class of the button-control, if omitted "button" is default

 

P10 - class of the static-text. If omitted, "static" or "syslink" is default

 

 

 

 

Example

 

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

' DBC.-Sample 1

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

' This will create some messageboxes in the background.

FOR.§§LOP|1|10

 PRR.

:ag

   MBX.This is a Text.

   END.

 PRE.

NEX.

PAU.1

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

' Here we start the DBC.

DBC.a|$$RUK|remote&OR:Nachricht|Ok|This is a||1|#32770|button

PAU.2

MBX.Ende

END.

 

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

' DBC.-Sample 2

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

' This will create some messageboxes in the background.

PRR.

FOR.§§LOP|1|180

MBX.Hallo||Nachricht-§§LOP

NEX.

END.

PRE.

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

DBC.a|$$UK|remote&OR:Nachricht|Ok

PRT.My ID is:$$RUK

PAU.15

MBX.Ende

END.

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

 

 

 

Remarks

 

DBC. ist not the "Mouseclick".-Command.  If you just want to click on a button, use MLC.,MLE.,MLM., or MLI.

 

The DBC.-Command is a background-Task for suddenly appearing Messageboxes.

 

The Action Parameter 16 (MLM.) generates a small Move on the target button, before the Click (MLI.). This way the command is more compatible, with few difficult application.

 

 

 

Limitations:

 

There is no limit in the number of DBC.-commands that can be active at the same time.

 

 

 

See also:

 

    MLE. - Mouse-Left-Click Event

    BSC. - Button Special Click

    CLW. - Close-Window

    MLI - Mouse Left Click quIckly (Invinsible)

    MLM - Mouse Left click Move (Invinsible)