Compatible Engine Mouse-Operations

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Mouse-Operations > Compatible Engine >

Compatible Engine Mouse-Operations

MWR.  - Mouse-Wheel Roll

Previous Top Next


MiniRobotLanguage (MRL)

 

MWR. Command

Mouse Wheel Roll (compatible engine)

 

Compatible Engine_01

 

Intention

 

MWR. simulates a Mouse-Wheel Scroll forward or backward.

This Command simulates the Mouse Wheel using the Compatible Engine.

Therefore the Mouse must be positioned over the target application window.

 

The usage of the command is simple, you can just write:

 

MPO.

MWR.120

or

MWR.-120

 

Then the mouse wheel will do the scroll either forward (120) or backward (-120).

 

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:

MAP - Move Active Point.

 

This command will simulate a  real Mouse-Wheel.

Therefore the Mouse pointer needs to be over the target window.

 

MWR--. has therefore all the strong and all the weak sides of a typical Compatible Engine command.

 

MWR. is a real Mouse-Roll,  therefore it need the window to be on top of other windows. Also it will  need a mouse-pointer and a desktop.

 

You can find some more details on the "r"-prototype here: MAP - Move Active Point.

 

 

 

Syntax

 

MWR.P1

 

 

Parameter Explanation

P1 - (optional) Variable or Value

 

Generally P1 is a number that is either positive or negative.

 

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

MWR.120

' Scrol the Mouse one Step backward

MWR.-120

' Tile the Mouse one Step right

MWT.120

' Tile the Mouse one Step left

MWT.-120

 

 

 

 

Example

 

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

' MWR.-Demo

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

STW.ct|IEFrame|Facebook - Internet Explorer

SCW.ct|Internet Explorer_Server|{&NOTEXT:}

' Scroll IE nach oben

MPO.

MWR.120

' Scroll IE nach unten

MWR.-120

PAU.1

ENR.

END.

 

 

 

Remarks

 

-

 

 

 

Limitations:

 

-

 

 

 

See also:

 

    1.C Direct Engine and Compatible Engine

    MWT. - Mouse Wheel Tile

    MWE. - Mouse Wheel Event

    MLE. - Mouse-Left-Click Event

    MLM - Mouse Left click Move (Invinsible)

    MLI - Mouse Left Click quIckly (Invinsible)

    MRC. / MRI. - Mouse-Right-Click

    MMV - Mouse MoVe

    OPT. - Optional Settings