Star Trek Online Key Binds Key binds can either be entered through the chat window or through a text file that you can use to import the key binds. For short key binds the chat window works well but for long key binds the text file will be a need. The Chat Window Format Command Structure: /bind <key> <command> Command Part: /bind the bind command. Command Part: <key> the key you want to assign the key bind to. Command Part: <command> the command that will be assigned to the key. The command section can contain several commands separated by a delimiter. The delimiter is a double dollar sign ($$). For several commands encapsulate the series of commands with double quotations. IMPORTANT: It is important to disable the Profanity filter while using the Chat Window Bind commands. The Profanity filter will remove sequences of characters that involve the $$ sign. This change will cause the bind command to create an incorrect bind. Text File Format Command Structure: <key> "<command>" Command Part: <key> the key you want to assign the key bind to. Command Part: <command> the command that will be assigned to the key. The same delimiter that is used in the Chat Window is also used in the Text File Format. Separate commands with a double dollar signs ($$). All commands need to be encapsulated with double quotation marks. Each key bind is placed on its own line. It will be helpful to use a text editor such as notepad to create the key binds. Possible Keys 1 0 All of the number keys at the top of the keyboard can be used. Tab Tab on the left of the keyboard. Shift The shift key on both sides of the keyboard use the same assignment. Enter The main Enter key on the keyboard. numpadenter The numerical keypad Enter key. numpad0 The numerical keypad zero key. numpad1 numpad9 The numerical keypad one through nine keys. Divide The divide key on the numerical keypad. Add The add key on the numerical keypad. Multiply The multiply (*) key on the numerical keypad. Subtract The subtract key on the numerical keypad. Space The spacebar on the keyboard. F1 F9 The F keys above the keyboard. ` The tilde key to the left of the numeric keys.
Home PageUp PageDown End Left Down Right Up The home key located close to the numerical keypad. The PageUp key on the keyboard. The PageDown key on the keyboard. The End key on the keyboard. The left arrow key. The down arrow key. The right arrow key. The up arrow key. Key Modifiers Control+ Alt+ Adding the Control+ in front of the key will setup a key combination of Control+<key>. Add the Alt+ in front of the key will setup a key combination of Alt+<key> Example: /bind Control+F "team Hallo everyone." Variables $Target The $Target contains the name your target. If this is included in text or in the space of a Name it will be replaced with the Name of your Target. For example: /bind c "team Target [$Target]". If our target's name is "Steve Alen" then this command will enter into team chat "Target [Steve Alen]". Common Commands team <text> This command writes out a text to the team chat. target_clear Clears the current target. target_enemy_near Target nearest enemy. Target_Enemy_Next Targets the next enemy available. target_teammate <number> Target the teammate in the position indicated in <number>. target <Name> Target the <Name> if it is in range. Note: make sure there is no space between the end of the name and the end of the command or delimiter ($$). Target_Friend_Next Target the next person in the team. Target_Enemy_Next_Exposed Targets any exposed enemy. StatsPreset_Load Preset_1 Load the Weapons power preset level. StatsPreset_Load Preset_2 Load the Shield power preset level. StatsPreset_Load Preset_3 Load the Engine power preset level. StatsPreset_Load Preset_4 Load the Balance power preset level. +svpushtotalk Push to talk command (Voice). Assist <Name> Target the same target as the character in the <Name> Note: make sure there is no space between the end of the name and the end of the command or delimiter ($$). +TrayExecByTray <tray> <slot> Run the Action that is located in <slot> on <tray>. This key bind
command can be the most confusing command. It requires a slight adjustment. The tray numbers that are visible in game are natural numbers. Meaning that they start at 1 as the first tray and end at tray 10 as the last tray. The command references the real number of the tray position. That means that the first tray is number 0 and the last tray is number 9. So if we want to activate the ability that is located in tray 2 and in slot 8 we would use the following format for the command: +TrayExecByTray 1 7. GenSendMessage HUD_Root FireAll Fire all the weapons. FirePhasers Fire all Cannons, Turrets and Beams. FireTorps Fire all Torpedoes. FireMines Fire all mines. FirePhasersTorps Fire all Cannons, Turrets, Beams, and Torpedoes FireProjectiles Fire all Torpedoes and mines. CamReset Reset the camera view. camusechasecam 1 Place the camera directly behind you. camdist <number> Set the distance of the camera from you. camusechasecam 0 Fix the camera's direction of view. Chat Window Key Bind Examples /bind End "camusechasecam 1$$ camdist 200" This example is great for space escorts. When you press the End button on the keyboard you will now be placed directly behind yourself at a the distance specified by camdist command. This command is a compound command. We used the double dollar sign delimiter to seperate two commands. /bind 1 "target_teammate 1" This command will target the teammate in position one of the team when you press the number one key above the qwerty keys. /bind ` "target_clear" This command will clear your selected target to nothing when you press the tilde key. Text File Key Bind Examples of the Above Commands End "camusechasecam 1$$ camdist 200" 1 "target_teammate 1" ` "target_clear" Simplifying Key Binds by adding some complexity first It can be a full time effort to create key binds to accomplish different complicated actions in the game. Deciding to make one change could require editing a complicated command to add one feature. There is a feature in the game that simplifies all of this. The game as 10 trays that can be used. Usually we make only three of them visible. Those other 7 remaining trays can be used in key binds. If we assign one key to a complete tray and then place our actions in those slots, we could now have a key that activates several
actions. If we wanted to make changes all we have to do is go to that tray and alter the actions in the tray. No need to touch the key bind again. The image shows where you can change the tray positions to access the other tray numbers. Now to assign a key to tray 10 we will use a chain of commands. One thing to note is that in the chat window there is a maximum length that can be used. This limitation prevents us from assigning all the slots in a tray to one key. The maximum number of slots that can be assigned using the chat window is 8. To assign more you will need to use the text file method. The text file method will be elaborated on more later. If we wanted to assign tray 10 to the Numerical Key pad Zero button the following commands could be used: Chat Window Command for 8 Slots of Tray 10 /bind numpad0 "+TrayExecByTray 9 0$$ +TrayExecByTray 9 1$$ +TrayExecByTray 9 2$$ +TrayExecByTray 9 3$$ +TrayExecByTray 9 4$$ +TrayExecByTray 9 5$$ +TrayExecByTray 9 6$$ +TrayExecByTray 9 7" Text File Method for 10 Slots of Tray 10 numpad0 "+TrayExecByTray 9 0 $$ +TrayExecByTray 9 1 $$ +TrayExecByTray 9 2 $$ +TrayExecByTray 9 3 $$ +TrayExecByTray 9 4 $$ +TrayExecByTray 9 5 $$ +TrayExecByTray 9 6 $$ +TrayExecByTray 9 7 $$ +TrayExecByTray 9 8 $$ +TrayExecByTray 9 9" Take note that we used the number 9 to reference tray 10. The easiest way to think of this is to just subtract one from the tray number and slot number. Using the Text File to import Key Binds
What you will need is a text editor such as notepad. First let us look at the two commands that allow us to export and import key bind sets. /bind_save_file <filename> This command can be used to export your current key binds. The <filename> tag should be replaced with a name you can easily use and that has no spaces in it. You should also add a ".txt" at the end of the name so that you can locate and edit this file with notepad. An example of a filename would be spacekeys.txt. /bind_load_file <filename> This command is used to import the key binds listed in the text file. The <filename> tag should be replaced with the name of the file. Make sure the file you are using has no spaces in the name. Steps: 1. In the chat window enter the follow command and hit enter: /bind_save_file mykeys.txt 2. Open Notepad and click on File Open. 3. Browse to the Star Trek Online game folder. This location can be different depending on the method you used to install Star Trek Online. It could be located under the Program Files folder or under the Steam folder. What you are looking for is a Folder that is named "Star Trek Online" and it will have a sub folder with the name "Live". Your mykeys.txt file will be located under the "Live" folder. One possible method to locate the game folder is to right click on the Star Trek Online Game icon and selecting Properties. The Start in property will indicate where the Game might be located. The folder will contain the GameClient.exe file. 4. Open the mykeys.txt file. 5. You should see some existing key binds. Some are created by the game and others will be ones you have changed manually in the Key Binds screen in game. 6. Enter your new commands on a new empty line. 7. Save your text file. 8. in the game's chat window enter the following command and hit enter: /bind_load_file mykeys.txt Execution Order When you create key binds with compounded commands you might want to be aware of the order in which the commands will execute. There are two phases to a key bind execution. The first Phase occurs when you press the key for the first time. The second phase is entered when you press the key a second time or repeatedly while an activity on the list is still activating. If you stop pressing the key and all the actions in the command list are no longer activating then Phase one is entered again. Phase 1 In Phase one the first available action from left to right is picked and activated. Phase 2 The First available skill from right to left is picked and activated. The priority therefore is increased from Left to Right.
Let us examine how the following key bind would work: numpad0 "+TrayExecByTray 9 0 $$ +TrayExecByTray 9 1 $$ +TrayExecByTray 9 2 $$ +TrayExecByTray 9 3 $$ +TrayExecByTray 9 4 $$ +TrayExecByTray 9 5 $$ +TrayExecByTray 9 6 $$ +TrayExecByTray 9 7 $$ +TrayExecByTray 9 8 $$ +TrayExecByTray 9 9" The resulting execution of Tray 10 is depicted in the image below: If we press the key repeatedly, say twice a second, then we will enter Phase one and it will be followed by Phase two. Since there are two Battle Strategies on each end: In Phase one the first will be executed. In phase two it will already have been executed and will not be available as it is in a cooldown. The Tactical Initiative will therefore be activated second. From that point onwards, everything gains a priority from right to left. If we keep pressing the key then the priority remains right to left. One way of fixing this in the key bind itself is to add two commands for the same slot. Let us look at the follow key bind: numpad0 "+TrayExecByTray 9 9$$ +TrayExecByTray 9 0 $$ +TrayExecByTray 9 1 $$ +TrayExecByTray 9 2 $$ +TrayExecByTray 9 3 $$ +TrayExecByTray 9 4 $$ +TrayExecByTray 9 5$$ +TrayExecByTray 9 6$$ +TrayExecByTray 9 7$$ +TrayExecByTray 9 8$$ +TrayExecByTray 9 9" By adding the same slot twice we can place an action in Slot 10 on Tray 10 to be the first action executed. If it is important to maintain the sequence then the action that goes into this slot should be readily available, before starting the pressed sequence. This will assist the transition from Phase 1 to Phase 2. We can also expand on this key bind further and always ensure a right to left execution. numpad0 "+TrayExecByTray 9 9$$ +TrayExecByTray 9 8$$ +TrayExecByTray 9 7$$ +TrayExecByTray 9 6$$ +TrayExecByTray 9 5 $$ +TrayExecByTray 9 4$$ +TrayExecByTray 9 3$$ +TrayExecByTray 9 2$$ +TrayExecByTray 9 1 $$ +TrayExecByTray 9 0 $$ +TrayExecByTray 9 1 $$ +TrayExecByTray 9 2 $$ +TrayExecByTray 9 3 $$ +TrayExecByTray 9 4 $$ +TrayExecByTray 9 5$$ +TrayExecByTray 9 6$$ +TrayExecByTray 9 7$$ +TrayExecByTray 9 8$$ +TrayExecByTray 9 9" With this command we have a mirror of all the Slots on tray 10. If we are in Phase one we will be executing the commands in Red and Purple from left to right. If we are in Phase Two we will be executing the commands in Blue and Purple from right to left.
Let us examine a situation where we might consider super buffing and wanting to launch our Torpedo as soon as the buff is complete. We would place our sequence of buffs on Tray 10 in reverse order and excluding the launch of the Torpedo. The key bind command would look as follows: numpad0 "+TrayExecByTray 9 9$$ +TrayExecByTray 9 8$$ +TrayExecByTray 9 7$$ +TrayExecByTray 9 6$$ +TrayExecByTray 9 5$$ +TrayExecByTray 9 4$$ +TrayExecByTray 9 3$$ +TrayExecByTray 9 2$$ +TrayExecByTray 9 1$$ +TrayExecByTray 9 0$$ FireTorps $$+TrayExecByTray 9 0 $$ +TrayExecByTray 9 1 $$ +TrayExecByTray 9 2 $$ +TrayExecByTray 9 3 $$ +TrayExecByTray 9 4 $$ +TrayExecByTray 9 5$$ +TrayExecByTray 9 6$$ +TrayExecByTray 9 7$$ +TrayExecByTray 9 8$$ +TrayExecByTray 9 9" Now the mirror of commands exists around the FireTorps command in the center. This will ensure our buffs will execute from Right to Left on Tray 10 and then fire the Torpedo, when no other actions are available on the Tray. For Space Pilots This command reassigns the space bar to fire cannons and beams as well as all of tray 10. Leaving tray 10 empty will still allow firing of cannons and beams. You will need to use the text file method to make this work. Space "+TrayExecByTray 9 9$$ +TrayExecByTray 9 8$$ +TrayExecByTray 9 7$$ +TrayExecByTray 9 6$$ +TrayExecByTray 9 5$$ +TrayExecByTray 9 4$$ +TrayExecByTray 9 3$$ +TrayExecByTray 9 2$$ +TrayExecByTray 9 1$$ +TrayExecByTray 9 0$$ FirePhasers $$+TrayExecByTray 9 0 $$ +TrayExecByTray 9 1 $$ +TrayExecByTray 9 2 $$ +TrayExecByTray 9 3 $$ +TrayExecByTray 9 4 $$ +TrayExecByTray 9 5$$ +TrayExecByTray 9 6$$ +TrayExecByTray 9 7$$ +TrayExecByTray 9 8$$ +TrayExecByTray 9 9" Using the text file example below you can assign a key to seven trays and create conditional keys that include ship maintenance or a super buff for a tactical officer on the ground. Or even continuous healing for a Science officer. The Text File method, by far out performs the chat window method, due to the fact that we can solve the Phase one and Phase two issues by mirroring the commands around a central command.
Text File Example Left "+TrayExecByTray 9 9$$ +TrayExecByTray 9 8$$ +TrayExecByTray 9 7$$ +TrayExecByTray 9 6$$ +TrayExecByTray 9 5$$ +TrayExecByTray 9 4$$ +TrayExecByTray 9 3$$ +TrayExecByTray 9 2$$ +TrayExecByTray 9 1$$ +TrayExecByTray 9 0$$+TrayExecByTray 9 0 $$ +TrayExecByTray 9 1 $$ +TrayExecByTray 9 2 $$ +TrayExecByTray 9 3 $$ +TrayExecByTray 9 4 $$ +TrayExecByTray 9 5$$ +TrayExecByTray 9 6$$ +TrayExecByTray 9 7$$ +TrayExecByTray 9 8$$ +TrayExecByTray 9 9" Down "+TrayExecByTray 8 9$$ +TrayExecByTray 8 8$$ +TrayExecByTray 8 7$$ +TrayExecByTray 8 6$$ +TrayExecByTray 8 5$$ +TrayExecByTray 8 4$$ +TrayExecByTray 8 3$$ +TrayExecByTray 8 2$$ +TrayExecByTray 8 1$$ +TrayExecByTray 8 0$$ +TrayExecByTray 8 0 $$ +TrayExecByTray 8 1 $$ +TrayExecByTray 8 2$$ +TrayExecByTray 8 3 $$ +TrayExecByTray 8 4 $$ +TrayExecByTray 8 5$$ +TrayExecByTray 8 6$$ +TrayExecByTray 8 7$$ +TrayExecByTray 8 8$$ +TrayExecByTray 8 9" Right "+TrayExecByTray 7 9$$ +TrayExecByTray 7 8$$ +TrayExecByTray 7 7$$ +TrayExecByTray 7 6$$ +TrayExecByTray 7 5$$ +TrayExecByTray 7 4$$ +TrayExecByTray 7 3$$ +TrayExecByTray 7 2$$ +TrayExecByTray 7 1$$ +TrayExecByTray 7 0$$ +TrayExecByTray 7 0 $$ +TrayExecByTray 7 1 $$ +TrayExecByTray 7 2 $$ +TrayExecByTray 7 3 $$ +TrayExecByTray 7 4 $$ +TrayExecByTray 7 5$$ +TrayExecByTray 7 6$$ +TrayExecByTray 7 7$$ +TrayExecByTray 7 8$$ +TrayExecByTray 7 9" Up "+TrayExecByTray 6 9$$ +TrayExecByTray 6 8$$ +TrayExecByTray 6 7$$ +TrayExecByTray 6 6$$ +TrayExecByTray 6 5$$ +TrayExecByTray 6 4$$ +TrayExecByTray 6 3$$ +TrayExecByTray 6 2$$ +TrayExecByTray 6 1$$ +TrayExecByTray 6 0$$ +TrayExecByTray 6 0 $$ +TrayExecByTray 6 1 $$ +TrayExecByTray 6 2 $$ +TrayExecByTray 6 3 $$ +TrayExecByTray 6 4 $$ +TrayExecByTray 6 5$$ +TrayExecByTray 6 6$$ +TrayExecByTray 6 7$$ +TrayExecByTray 6 8$$ +TrayExecByTray 6 9" Add "+TrayExecByTray 5 9$$ +TrayExecByTray 5 8$$ +TrayExecByTray 5 7$$ +TrayExecByTray 5 6$$ +TrayExecByTray 5 5$$ +TrayExecByTray 5 4$$ +TrayExecByTray 5 3$$ +TrayExecByTray 5 2$$ +TrayExecByTray 5 1$$ +TrayExecByTray 5 0$$ +TrayExecByTray 5 0 $$ +TrayExecByTray 5 1 $$ +TrayExecByTray 5 2 $$ +TrayExecByTray 5 3 $$ +TrayExecByTray 5 4 $$ +TrayExecByTray 5 5$$ +TrayExecByTray 5 6$$ +TrayExecByTray 5 7$$ +TrayExecByTray 5 8$$ +TrayExecByTray 5 9" Divide "+TrayExecByTray 4 9$$ +TrayExecByTray 4 8$$ +TrayExecByTray 4 7$$ +TrayExecByTray 4 6$$ +TrayExecByTray 4 5$$ +TrayExecByTray 4 4$$ +TrayExecByTray 4 3$$ +TrayExecByTray 4 2$$ +TrayExecByTray 4 1$$ +TrayExecByTray 4 0$$ +TrayExecByTray 4 0 $$ +TrayExecByTray 4 1 $$ +TrayExecByTray 4 2 $$ +TrayExecByTray 4 3 $$ +TrayExecByTray 4 4 $$ +TrayExecByTray 4 5$$ +TrayExecByTray 4 6$$ +TrayExecByTray 4 7$$ +TrayExecByTray 4 8$$ +TrayExecByTray 4 9" numpad0 "+TrayExecByTray 3 9$$ +TrayExecByTray 3 8$$ +TrayExecByTray 3 7$$ +TrayExecByTray 3 6$$ +TrayExecByTray 3 5$$ +TrayExecByTray 3 4$$ +TrayExecByTray 3 3$$ +TrayExecByTray 3 2$$ +TrayExecByTray 3 1$$ +TrayExecByTray 3 0$$ +TrayExecByTray 3 0 $$ +TrayExecByTray 3 1 $$ +TrayExecByTray 3 2 $$ +TrayExecByTray 3 3 $$ +TrayExecByTray 3 4 $$ +TrayExecByTray 3 5$$ +TrayExecByTray 3 6$$ +TrayExecByTray 3 7$$ +TrayExecByTray 3 8$$ +TrayExecByTray 3 9"