Execution Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Execute-Commands >

Execution Commands

EXR. - Execute from Registry

Previous Top Next


MiniRobotLanguage (MRL)

 

EXR. Command

Execute from Registry

 

 

Intention

 

Starts a File or Document.

 

EXR. will try to deliver #pid# and #tid#.

EXR. will only start files with a registered, valid File-Extension.

 

You can start a document, like this:

EXR.?desktop\MR.txt

 

or an executable:

 

EXR.?pfad\XYZ.msi

EXR.?pfad\TestApp.exe

 

You can specify a window-size-flag, however this will only work, if the application supports this.

 

If EXR. can not start the file, the timeout-flag #tio# will be set to 1, else it will be reset to 0.

 

 

Syntax

 

 

EXR.P1[|P2]

 

 

Parameter Explanation

 

 

P1 - executable or Document-Filename or a hyperlink, ending with a valid registered file-ending.

 

P2 - (optional) Window Size Parameter

 

0 - HIDE    -   Hides the window and activates another window.

1 - SHOW NORMAL   Activates and displays a window.

2 - SHOW MINIMIZED - Activates the window and displays it as a

   minimized window.

3 - MAXIMIZE -   Maximizes the specified window.

4 - SHOW-NO-ACTIVATE - Displays a window in its

   most recent Size and position.

   The active window remains active.

5 - SHOW - Activates the window and displays it

   in its current size and position.

6 - MINIMIZE - Minimizes the specified window and

   activates the next top-level window in the Z order.

7 - SHOW-MIN-NO-ACTIVE - Displays the window as

   a minimized window. The active window remains active.

8  - SHOW-NO-ACTIVE - Displays the window in its current state.

     The active window remains active.

9 - RESTORE - Activates and displays the window.

10 - SHOW-DEFAULT - Sets the SHOW STATE to default.

 

 

 

Example

 

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

' Example 1 - without Windows-Parameter

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

VAR.$$LNK=http://www.fa2.de

EXR.?desktop\MR.txt

:over

MBX.Halt to read output

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

 

 

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

' Example 2 - using Windows-Parameter

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

' EXR. - Beispiel

DBM.2

' Start document minimized

: §§FIL=?desktop\MyWord.doc

EXR.§§FIL|6

DMP

 

:over

MBX.Halt to read output

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

 

 

Remarks

 

Technical remark: EXR. uses Create-Process-FindExecutable-Technology and is compatible with other commands that use this technology.

EXR. can be blocked by a process that it has started. If this turns to be a problem, choose EXA. or EXF. as alternative.

 

 

Limitations:

 

There may be cases where EXR. can not deliver the proper PID/ TID. This depends on the target application, and may be influenced by the fact, if the target application is already running.

 

 

See also:

 

    GEP. - Get-Executable-Path

    EXS. - Execute Shell

    EXF. - Execute Fast

    EXH. - Execute-Handle

    EXO. - Execute Open Document