You have the option of starting the Desktop Viewer with the following start parameters:
- “-locahost”
The viewer connects automatically and immediately to the localhost (127.0.0.1) at startup.
- “-address=127.0.0.1” (any address)
With the “address” parameter, the viewer can automatically connect to any address at startup.
In this example with 127.0.0.1 (equivalent to -localhost).
- “-port=1234” (any port)
The “port” parameter can be used to specify a port that differs from the standard (6064 = standard port / 6063 = port for Community Edition).
Port 1234 is just one example.
- “-ssl”
If this parameter is specified at startup, the connection is automatically established securely.
- “-connection=name” (a name that already exists as a connection)
The “connection” parameter can be used to automatically establish a connection to an existing connection when the viewer is started.
- “-machinemode=Password” (any password)
The “machinemode” parameter can be used to start the viewer in machine mode.
In this mode, the viewer is automatically active in full screen mode, which cannot be exited.
Closing the viewer with Alt+F4 or Alt+Tab or similar is then no longer possible.
A password must be added to the “machinemode” parameter. (In the example above “Password”).
Machine mode can only be ended by entering this password. The password does not have to be entered in a text field, but can be entered in any mask.
To start the viewer with start parameters, proceed as follows:
- Windows
First create a link to QHMIViewer.exe.
Then open the properties of this shortcut (right-click -> Properties). In the “Destination” input field, the above parameters ( separated by spaces) can be entered after the path to the exe.
- Linux
The creation of a shortcut on the desktop differs depending on the desktop environment.
After creating the shortcut, add the desired parameters to the command at the end (after “..qhmi_viewer.jar”).
