PlugIn Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > PlugIn-Commands > PIS. - PlugIn Send >

PlugIn Commands

PIS.SetAutoRunSynchronNoDisable / SetAutoRunASynchronNoDisable

Previous Top Next


MiniRobotLanguage (MRL)

 

PIS.SetAutoRunSynchronNoDisable

PIS.SetAutoRunASynchronNoDisable

PlugInSend Run Executable on Button-Press (do NOT deactivate Button for the time)

 

 

Intention

 

Using the PIS.SetAutoRunSynchronNoDisable / SetAutoRunASynchronNoDisable,

you can make the Buttonbar directly start an executable. You will still be notified in the

PIW.-Command that the Button has been pressed, this will happen after the executable has been started.

 

So what is the difference between running an executable ASynchron or Synchron?

If you run it "ASynchron" the Plugin will just run the executable and immediately continue what its doing,

NOT waiting for the executable to end its task.

If you run it "Synchron" the Plugin will run the executable and wait for the executable to end its task.

In that time, the Button will NOT be disabled.

 

$$PAT=?path\Hallo.exe

' We do not want a Mousemessage in PIW. for Button 8 so we use this

PIS.$$REA|MouseMessageFilter|8|1

 

' Define Button 7 to start the Hallo.exe "ASynchroneous"

PIS.$$REA|SetAutoRunASynchronNoDisable|7|$$PAT

' Define Button 8 to start the Hallo.exe "Synchroneous"

PIS.$$REA|setautorunsynchronNoDisable|8|$$PAT

 

Generally a Mouse-Message will be sent to the PIW.

If you do not want to get a Message that the Button was pressed, then you can use the

 

PIS.$$REA|MouseMessageFilter|8|1

 

Command to decide which messages you want or not.

Value "1" means "No messages for Running Executables".

Value "0" will clear the filter and then you will get all messages.

 

 

Syntax

 

PIS.P1|SetAutoRunSynchron|P2|P3

PIS.P1|Sas|P2|P3

 

PIS.P1|SetAutoRunASynchron|P2|P3

PIS.P1|Saa|P2|P3

 

 

Parameter Explanation

 

P1 - Variable which contains the PlugIn Index-No.

P2 - Value, Button Number

P3 - Variable with the complete Path of the Executable to start on the press of the Button.

 

 

 

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:

 

    PIL. - PlugIn Launch

    PIS. - PlugIn Send

    PIW. - PlugInWait