<< Click to Display Table of Contents >> Navigation: 3. Script Language > Browser and Office (Acc.-Engine) > Browser and Office Commands |
MiniRobotLanguage (MRL)
LAP. Command
Locate any Object/Window at a specified coordinate
Intention
This command will locate a Top- or Child-Window and possibly an "Accessible Object" (~ Browser/Office Object that is not a window) that is at the given Coordinate. Depending on the specified parameters, you do not need to locate any Top-Window prior using this command.
Most often, this command may be used together with GMP. (Get Mouse Position) to interact with the object, where the user has placed his mouse-pointer.
The LAP.-command can be used to locate a Top- or Child-Window as well as to locate another non-window (Acc.-)Object.
Syntax
LAP.[P1][|P2,P3]
Parameter Explanation
P1 - (optional) Prototypes, can be one of these:
s - screen coordinates are specified
o - (Acc-) Object coordinates are specified
r - Coordinates are specified relativ to active point
w - Window coordinates are specified
m - Use Mouse Coordinates and add specified coordinates
in this case Coordinates can be omitted.
you can add these two prototypes as second prototype:
l - Use given coordinates and make left-shift
n - Do NOT locate an Acc.-Object - just locate the window.
Example:
LAP.sn|44,56
LAP.ml|109,12
P2, P3 - (optional) - X- and Y-Coordinates in the Coordinate System that
is specified using the above prototypes.
Example
' Run this script in the Editor, drive with the Mouse on
' an object within the first PAU. command.
' then wait until the LAP. command was executed.
' Now drive the mouse away.
' After 3 seconds the mouse will return to the center-point of
' the Object that was under the mouse while LAP. was called.
' Note that this worked without any need for previous STW.
'
PAU.2
GMP.ms|$$XPO|$$YPO
DBP.$$XPO-$$YPO
LAP.s|$$XPO,$$YPO
PAU.3
MMV.
:Lab_nocon
ENR.
Remarks
-
Limitations:
Using invalid coordinates with LAP. may result in strange errors.
See also:
• MOS. - Mouseless Object Select
• SAO. - Search Accessible Object
• AGR. - Accessibility Get Rect