<RetVar> = register hotkey <Var/String> to call script name <Var/String>

This forum serves as MSCI Reference at EGOSOFT. It's Read-Only for non MSCI Group members.

Moderators: Scripting / Modding Moderators, MSCI Moderators

Locked
mark_a_condren
Posts: 1468
Joined: Wed, 3. Aug 05, 05:05
x3tc

<RetVar> = register hotkey <Var/String> to call script name <Var/String>

Post by mark_a_condren » Fri, 10. Sep 10, 12:06

<RetVar> = register hotkey <Var/String> to call script name <Var/String>


<RetVar> = Returns the internal ID of the assigned hotkey.
<Var/String> = Select a unique name for your hotkey and enter it here as a variable containing a string or directly as a string. This is also the name that will show in the controls menu under 'Interface'.
<Var/String> = The name of the script to be called entered as a 'string' or a variable containing a string.


<RetVar> Returns the internal ID of the assigned hotkey.
It is what you need to uninstall the hotkey later and has no other use.
Save this value in a global variable/array so you can use it in your uninstall script.
This command is normally used in a setup script.


Example:

$my.script.hotkey = register hotkey 'My Script Hotkey' to call script name 'plugin.my.script'


Functionally identical to.
<RetVar> = register hotkey <Var/String> to call script <Script Name>


Command Location:

Alex Vanderbilt
Winner X3 Sektorquest
Posts: 2127
Joined: Thu, 4. May 06, 12:07
x3tc

[TiP][49] 286613

Post by Alex Vanderbilt » Wed, 29. Sep 10, 18:49

<RetVar> = register hotkey <Var/String> to call script name <Var/String>

<RetVar> = Gibt die interne ID von einer zugewiesenen Schnellwahltaste (Hotkey) zurück.
<Var/String> = Wähle eine eindeutige Bezeichnung für die Schnellwahltaste und gib diesen hier entweder als Variable, die einen String enthält, oder direkt als String ein. Diese Bezeichnung wird im Menü "Interface" angezeigt werden.
<Var/String> = Die genaue Bezeichnung des Skripts, das die Schnellwahltaste aufruft, eingegeben entweder als Variable, die einen String enthält, oder direkt als String.

<RetVar> = Gibt die interne ID von einer zugewiesenen Schnellwahltaste (Hotkey) zurück.
Dies wird einzig dazu benötigt, um die Schnellwahltaste später wieder entfernen zu können.
Speichere diesen Wert am besten in einer globalen Variable oder einem Array, um ihn später im Deinstallationsskript verwenden zu können.
Dieses Kommando wird normalerweise in setup-Skripten angewandt.

Beispiel:

$my.script.hotkey = register hotkey 'My Script Hotkey' to call script name 'plugin.my.script'

Funktion ist identisch zum Kommando:
<RetVar> = register hotkey <Var/String> to call script <Script Name>


Zu finden unter:

Locked

Return to “MSCI Reference”