<< Click to Display Table of Contents >> Navigation: 3. Script Language > Mouse-Operations > Direct Engine > Direct Engine Mouse-Operations |
MiniRobotLanguage (MRL)
MWE. Command
Mouse-Wheel Event (direct engine)
Intention
This Command is the standard command to scroll the Mouse Wheel.
It can scroll in any direction, either forward/backward, or left/right.
MWE. will simulate a the Mouse Wheel Event using the direct engine.
The WME. Command will not really move the mouse and do the Scrolling.
It will instead tell the the target application "that there was a mouse-wheel movement".
Therefore the target window does not need to be on top. It can even be hidden or outside of the area where the mouse can move.
MWE. can scroll in Windows that are disabled, and it can even work on invisible windows.
Using WME. then the mouse pointer will not be used. However the "action" will take place at the current "Active Point". 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 will definitely need to localize an active application/window before using this command.
You can find some more details on the "Active Point" and how to move it, here:
Hints:
• Like all direct engine commands, MWE. depends on the cooperation of the target application. In some - especially JAVA-based) applications, the MWE. will not work.
• In those cases where MWE. does not works as expected, use MWR. or MWT.
Syntax
MWE.[P1]
Parameter Explanation
P1 - (optional) Variable or Value
Generally P1 is a number that is either positive or negative.
Additionally, you can prefix P1 with the following letters to change the functionality:
H - Switch to Horizontal Mode, Tile Mouse-Wheel instead of scrolling.
Negative numbers will tile left, Positive numbers will tile right.
A - First XButton is pressed while the Wheel is rotated
B - Second XButton is pressed while the Wheel is rotated
C - ctrl (strg) is pressed on the Keyboard while the Wheel is rotated
D - Left Mouse Button is pressed while the Wheel is rotated
E - Right Mouse Button is pressed while the Wheel is rotated
F - Middle Mouse Button is pressed while the Wheel is rotated
Note that it does not make any difference whether you prefox the number with the letter, or if you use the letter as suffix.
MWE.H120
MWE.120H
is both completely equal.
Positive numbers scroll the Mouse wheel forward (away from the user)
negative numbers scroll the Mouse wheel backwards (direction to the user).
You can scroll in very fine steps.
A normal Mouse-Wheel scroll with a standard Mouse is 120.
If you want to simulate two steps with a Mouse Wheel, therefore you would scroll by 240.
Example:
' Scrol the Mouse one Step forward
MWE.120
' Scrol the Mouse one Step backward
MWE.-120
' Tile the Mouse one Step right
MWE.H120
' Tile the Mouse one Step left
MWE.-120H
Example
'***********************************
' MWE.-Demo
'***********************************
' Scroll Google Chrome Browser
STW.ct|Chrome_WidgetWin_1|- Google Chrome
MWE.120H
PAU.1
ENR.
Remarks
-
Limitations:
-
See also:
• 1.C Direct Engine and Compatible Engine
• MLE. - Mouse-Left-Click Event
• MLM - Mouse Left click Move (Invinsible)
• MLI - Mouse Left Click quIckly (Invinsible)
• MRC. / MRI. - Mouse-Right-Click