I translated the t-file into german and opened a thread there ( http://forum.egosoft.com/viewtopic.php?t=246769 )
I hope thats ok for you?!?

Moderators: Moderators for English X Forum, Scripting / Modding Moderators
apricotslice wrote:The solution is to ensure that the setup script that creates the hotkey only runs once.
So the setup checks for a global variable.
If not found, call a script that creates the hotkey, and create the global variable.
If the global variable exists, then do nothing.
This way, the script that creates the hotkey is only ever run a single time.
Code: Select all
007 |while $count
008 ||dec $count =
009 ||$key = $hotkeys[$count]
010 ||$name = $key[0]
011 ||if $name == $a.name
012 |||$found = $count
013 |||break
014 ||end
015 |end
016 |
017 * check if the script has changed and regesiter
018 |if $found
Code: Select all
007 |while $count
008 ||dec $count =
009 ||$key = $hotkeys[$count]
010 ||$name = $key[0]
011 ||if $name == $a.name
012 |||$found = [TRUE]
013 |||break
014 ||end
015 |end
016 |
017 * check if the script has changed and regesiter
018 |if $found