PlugIn Commands

<< Click to Display Table of Contents >>

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

PlugIn Commands

PIS.SetAutoRunSynchron / SetAutoRunASynchron

Previous Top Next


MiniRobotLanguage (MRL)

 

PIS.SetAutoRunSynchron

PIS.SetAutoRunASynchron Command

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

 

 

Intention

 

Using the PIS.SetAutoRunSynchron / SetAutoRunASynchron, 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 be disabled.

 

$$PAT=?path\Hallo.exe

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

PIS.$$REA|SetAutoRunASynchron|7|$$PAT

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

PIS.$$REA|setautorunsynchron|8|$$PAT

 

 

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