Commander Key Binding Issue...
Boris
Join Date: 2002-12-30 Member: 11636Members
<div class="IPBDescription">changing bind keys as a switch menus...</div> I'm trying to get the keys to change according to the menu I'm in so I have one set of keys to corrospond to the positioning of the items in the menu. For example the build menu:
y*******u********i***********o***<-- keyboard keys
ResT***InfP*****ARM*********----**<-- structure to build
********************************
h*******j********k*********l*****
TF*****Tur******STur******----****
********************************
n*******m***********************
CCon***----***********************
The above keys are my layout for ALL menus, but only certain ones are needed for each menu(as you can tell the ---- means no item in that spot).
First thing I tried was binding all the key changes to one key. Example:
**BUILD MENU**
bind 8 "hotkey86; bind y hotkey??; bind u hotkey??; bind i ....." <-- you get the point
THE ABOVE KEPT CRASHING!
So next, I did the following:
bind 8 "hotkey86; exec menu1.cfg" <-- worked fine with the menu1.cfg as follows:
// file start **HOTKEYS for BUILD MENU**
bind "y" "hotkey41"
bind "u" "hotkey40"
bind "i" "hotkey48"
bind "h" "hotkey43"
bind "j" "hotkey56"
bind "k" "hotkey57"
bind "n" "hotkey58"
// end
I continued this process for avd build and equip menu.
It seems to work FINE, with one exception:
It only changes the keys OUTSIDE the comm chair.
When I am inside the comm chair it seems to only execute the first part of my key binding, namely, the "hotkey86" part. It won't exec any menu?.cfg's I have made. It will outside the chair (with the msg hotkey86 - 88) not recognized in the console of course, which is fine.
ANY HELP ON THIS WOULD BE APPRECIATED. SURE WOULD HELP WITH THE COMM'n!
Thanks
-Matt <!--emo&::skulk::--><img src='http://www.unknownworlds.com/forums/html/emoticons/skulk.gif' border='0' valign='absmiddle' alt='skulk.gif'><!--endemo-->
y*******u********i***********o***<-- keyboard keys
ResT***InfP*****ARM*********----**<-- structure to build
********************************
h*******j********k*********l*****
TF*****Tur******STur******----****
********************************
n*******m***********************
CCon***----***********************
The above keys are my layout for ALL menus, but only certain ones are needed for each menu(as you can tell the ---- means no item in that spot).
First thing I tried was binding all the key changes to one key. Example:
**BUILD MENU**
bind 8 "hotkey86; bind y hotkey??; bind u hotkey??; bind i ....." <-- you get the point
THE ABOVE KEPT CRASHING!
So next, I did the following:
bind 8 "hotkey86; exec menu1.cfg" <-- worked fine with the menu1.cfg as follows:
// file start **HOTKEYS for BUILD MENU**
bind "y" "hotkey41"
bind "u" "hotkey40"
bind "i" "hotkey48"
bind "h" "hotkey43"
bind "j" "hotkey56"
bind "k" "hotkey57"
bind "n" "hotkey58"
// end
I continued this process for avd build and equip menu.
It seems to work FINE, with one exception:
It only changes the keys OUTSIDE the comm chair.
When I am inside the comm chair it seems to only execute the first part of my key binding, namely, the "hotkey86" part. It won't exec any menu?.cfg's I have made. It will outside the chair (with the msg hotkey86 - 88) not recognized in the console of course, which is fine.
ANY HELP ON THIS WOULD BE APPRECIATED. SURE WOULD HELP WITH THE COMM'n!
Thanks
-Matt <!--emo&::skulk::--><img src='http://www.unknownworlds.com/forums/html/emoticons/skulk.gif' border='0' valign='absmiddle' alt='skulk.gif'><!--endemo-->
Comments
Here's mine if you want to see what I mean (or use it/modify it):
<a href='http://home.swbell.net/houston8/commander.cfg' target='_blank'>http://home.swbell.net/houston8/commander.cfg</a>
- Matt <!--emo&::skulk::--><img src='http://www.unknownworlds.com/forums/html/emoticons/skulk.gif' border='0' valign='absmiddle' alt='skulk.gif'><!--endemo-->