PDA

View Full Version : Context menu binds


Stero
03-21-2008, 08:48 PM
Hi!

I couldn't find a solution for this, when searching the net and this forum:

I know that you can make binds like this:

bind "ENTER" "_menuAccept" "" "menu"

This makes ENTER execute _menuAccept only when I'm in a menu.

But is it possible to do this for the context menu as well? I would like to use not the Mouse1 button to accept the selection I made in the context menu, but the key CTRL.

In other words I'm searching for a command like:

bind "CTRL" "_contextAccept" "" "context"

Thanks for the help!

stero.

[edit] just to make sure, that I mean the right thing with the contextMenu. I mean the menu that pops up around your crosshair and lets you for instance spot enemy units or request a vehicle...

Mustang
03-22-2008, 12:50 AM
The available contexts are:
default
vehicle
menu
bindmenu
medic
engineer
fieldops
soldier
covertops
technician
constructor
oppressor
aggressor
infiltrator

By messing around with some cvars it is possible to spilt the vehicle context down for each seperate vehicle
But at any rate the only ones of interest would be:
default
menu
bindmenu

I tested them for you and the only one of these which effects the quick chat/context menu is:
default

Now the default context for mouse1 is bound to _attack
However by binding ctrl to _attack instead the quick chat/context menu item doesnt get selected
Instead you just start to shoot

Which leads me to say that AFAIK what you ask for is not possible
Unless there is another context specifically for the quick chat/context menu that I don't know about
It would be my guess that this is hardcoded into the game
And checking the advanced game settings menu confirms this suspicion to be because the only available methods to select is via mouse input or letters/numbers shortcuts

Sorry

Stero
03-22-2008, 03:29 AM
Thanks for your time!
Yes, it really seems it's not possible. I actually have _attack on Ctrl, which is the reason, why I want this to work. Well too bad.
I'm using a mouse button now, which I binded with a macro that presses the key for the context menu and then directly the key 1. By doing so, I have now a possibility to just aim at something and directly get the default context message.
Or is there a way of binding a key as a script, that does the same, so I don't need any external driver tool?

Thanks again for your help. Really appreciate it!

Mustang
03-23-2008, 01:59 AM
Thanks for your time!
Yes, it really seems it's not possible. I actually have _attack on Ctrl, which is the reason, why I want this to work. Well too bad.
I'm using a mouse button now, which I binded with a macro that presses the key for the context menu and then directly the key 1. By doing so, I have now a possibility to just aim at something and directly get the default context message.
Or is there a way of binding a key as a script, that does the same, so I don't need any external driver tool?

Thanks again for your help. Really appreciate it!
You could do a similar thing and map CTRL to MOUSE1 instead of binding it ingame
But Im not sure how this lies with the "no external programs" rules

Anyhow this isn't possible to bind ingame as underscore commands (e.g. _context) can't be daisy chained (more than one command per button)