<< Click to Display Table of Contents >> Navigation: 3. Script Language > Mouse-Operations > Compatible Engine > Compatible Engine Mouse-Operations |
MiniRobotLanguage (MRL)
MLI. Command
Mouse Left Click Invisible (compatible engine with jump)
Intention
MLI. simulates a Mouse-Jump to, and a Left-Click at the target Position.
The mouse-pointer will then jump back to where it was before the click.
This Command simulates a Left-Click with the Mouse, using the Compatible Engine.
This command will simulate a Mouse-Jump. In opposite to a Mouse-Move, the Mouse will jump to the target, click and then jump back to the previous position.
MLI. uses the Compatible Engine for the Mouse-Click. It's faster then MLC. as the Mouse will not move slowly but Jump to the target.
Using MLI. the mouse pointer will jump to the current "Active Point" and do the Left-Click. In most cases the "Active Point" is been set, by localizing a button or control or object. In that case, the "Active Point" is in the center of the rectangular object.
You can find some more details on the "Active Point" and how to move it, here:
Some Hints:
• If MLI. seems not to work on your target window, try MLC. or MLM. MLC. and MLM. are a bit more compatible, for those applications that need a Mouse-move at the target position before the click.
• In case you can use the Direct Engine, MLE. is the command for you..
Syntax
MLI.[P1|][P2,P3]
Parameter Explanation
P1 - (optional) prototype coordinates
Prototype can be omitted or any of:
GROUP I (based on rectangular Area) Prototypes
"w" - choose RECT from last located Window (Child-/ or Top-Window)
"t" - choose RECT from last located Top-Window
"k" - choose RECT from last located Child-Window
"a" - choose RECT from last located Accessible Object (E8) (using SAO.,AGR.,NAV. etc.)
"g" - choose RECT from last located graphical Object (E9) (using QFR,, ANA., UNI. etc.)
"o" - choose RECT from last located Object/Window (any sort of)
"s" - use Screen-Coordinates, these will go over the whole Screen, including Dual- or Multi-Monitors
for these "Base-Prototypes" you can specify additionally fine-tuning using:
- Quadrant coordinates like:
MMV.o|{A2-B4}
- numeric numbers (positive and negative)
MMV.o|-20,90
and you can combine this:
MMV.o|-20,90 {A2-B4}
also there are three Prototypes that will do sort of "left-right" or "Mid" Positioning. These 3 can not be combined with each other.
"d" - Sort of LBO. - Positioning on the Left side of the current Rectangle.
"e" - Sort of RBO. - Positioning on the Right side of the current Rectangle.
"r" - Midpoint of the last RECT (default)
"u" - Move down by the size of the Windows-Titlebar
"v" - Move up by the size of the Windows-Titlebar
' Example (Combination):
MMV.oe|-20,90 {A2-B4}
GROUP II (based on Point) Prototypes
"m" - actual mouse-position. Usefull if the user moves the mouse somewhere and you want to act on that position.
"b" - last mouse-position, before last Move.
"p" - current "Active Point". (Default)
"l" - Last "Active Point".
If prototype is omitted, Screen-Coordinates are taken.
"x" - Set Active Point to the Command-position.
Example:
' Move Mouse and Active Point
MLC.wrx|-358,207
P2, P3 - (optional) x,y - coordinates
numeric coordinates, separated by comma. You can use
variable and Formula in (..). You can also use a
Point-Variable instead of two coordinates.
Example
'***********************************
' MLI.-Demo
'***********************************
STW.ct|PBWindowClass:0|TestApp
SCW.nct|2|Button|Button 2
MLI.r|(11*5),(-1*5)
ENR.
END.
Remarks
-
Limitations:
-
See also:
• 1.C Direct Engine and Compatible Engine
• MLC - Mouse-Left-Click (Invisible)
• MLE. - Mouse-Left-Click Event
• MLM - Mouse Left click Move (Invinsible)
• MDI. - Mouse Double-Click Invisible
• MRC. / MRI. - Mouse-Right-Click