iEGkp‖

FU2Py‖Shell Function

DK4MC‖Starts another application and defines the respective window style, if necessary.

FVEx2‖Syntax:

ArCV7‖Shell (Pathname As String[, Windowstyle As Integer[, Param As String[, bSync]]])

WADQ4‖Parameters:

7dFVT‖Pathname

SGKiG‖Name of the program that you want to start, optionally with complete path and/or arguments.

PaQxf‖Windowstyle

C8vkj‖Optional integer expression that specifies the style of the window that the program is executed in.

Note Icon

fupqC‖Parameter Windowstyle is only effective on Windows systems. On other systems the parameter is ignored.


6nZbY‖The following values are possible:

Windowstyle

UHeLL‖Meaning

0

KVBLe‖The focus is on the hidden program window.

rwAaE‖Not implemented in LibreOffice.

1

8nVHG‖The focus is on the program window in standard size.

Not implemented in LibreOffice.

2

yn6fB‖The focus is on the minimized program window.

3

FkVik‖focus is on the maximized program window.

4

5Dv4V‖Standard size program window, without focus.

Not implemented in LibreOffice.

6

iPXGx‖Minimized program window, focus remains on the active window.

Not implemented in LibreOffice.

10

cZkyq‖Full-screen display.


Note Icon

69kha‖Windowstyle 3 and 10 are equivalent in Windows systems.


rpPTX‖Param

HmcHB‖String that specifies additional arguments passed to the program.

bbNMF‖bSync

n5dtg‖If this value is set to true, the Shell command and all LibreOffice tasks wait until the shell process completes. If the value is set to false, the shell returns directly. The default value is false.

SEjHR‖Error codes:

5 Invalid procedure call

53 File not found

73 Not implemented

EFSA4‖Example:


Sub ExampleShellForWin
    Shell("c:\windows\calc.exe",2)
End Sub
Please support us!

Please support us!