<< Click to Display Table of Contents >> Navigation: 3. Script Language > PlugIn-Commands > PIS. - PlugIn Send > PlugIn Commands |
MiniRobotLanguage (MRL)
PIS.MouseMessageFilter Command
Set/Change which Mouse-Messages you get inside of PIW. for each Button.
Intention
The PIS.MouseMessageFilter -Command will let you decide for each Button, which Mouse-Messages you want to get - or not.
Generally a "Mouse-Event" can be a Button-Click, left or right Mousebutton, or it can just be an Mouseover, see the PIW.-Command for Details on which Mouse-Events the Robot supports.
Now each Mouse-Event needs your programs attention. Therefore you can now filter which Mouse-Event should be sent or not.
This is done, using the PIS.MouseMessageFilter -Command.
You define the filter once and then you will only get those messages that you really want.
0 - receive alle Messages (reset Filter)
1 - No Messages for Autorun-Executable-Events
2 - No DoubleClick-Messages
4 - No Singleclick Messages
8 - No Mouseover Messages
16 - No Mouse-Left-Messages (Mouse leaving the Button = End of Mouse-Over)
You just add the Numbers that you want to filter out, and call the
PIS.$$REA|MouseMessageFilter|8|(8+16+1)
' or add the numbers yourself:
PIS.$$REA|MouseMessageFilter|8|25
Command.
If you want to reset the filter to get all Messages, use:
PIS.$$REA|MouseMessageFilter|8|0
Here is an example:
$$PAT=?path\Hallo.exe
PIS.$$REA|MouseMessageFilter|8|1
PIS.$$REA|setautorunsynchron|8|$$PAT
' Endlos-Schleife
DOL.1
PIW.$$REA|§§BTN|4
ITO.
PAU.0.1
GTO.MLop
EIF.
' Button wurde geklickt oder Mouseover
GSB.react
:MLop
OOP.
PAU.2
:enz
END.
Syntax
PIS.P1|MouseMessageFilter|P2|P3
PIS.P1|Mmf|P2|P3
Parameter Explanation
P1 - Variable which contains the PlugIn Index-No.
P2 - Button Number, starting with "1" to 40
P3 - value for the Filter (0 to 31) see description above.
All commands are specific for the type of PlugIn used.
Example
-
Remarks
You can use up to 5 Plugins at the same time.
Just start them, each will get another Index.
To communicate with each PlugIn, you just give the PlugIn-Index to each command.
Button-Colors and transparency:
Please note that if you set Buttons transparent, that they can not have a background-color at the same time.
To set multiple Buttontext at once you can use:
PIS.$$PIN|sbt|all|Button %n
The "%n" is replaced with the number of that button.
The "all" and %n-scheme will also work with most other commands, where it makes sense.
Limitations:-
-
See also:
•