Page 1 of 1

Hotkey questions

Posted: 05 Mar 2010, 03:02
by Hobo Joe
Ok, so I've been fiddling with my hotkeys, and now I'm trying to figure out a few things.

We have commands that can select all units of a type, or all units of a type on the screen, but is there a way to select ALL combat units, or all combat units on the screen?

Is there a way to set up keys that can toggle on and off? I have a big list of hotkeys, most of which use space as a modifier, to avoid conflicting. But I think it's kind of a pita to hit space for all those things, I'd really like to have a way for it to stay on after I push it, and turn off when I push it again. Something similar to SupCom's build mode, perhaps. And, in addition to that, maybe a context sensitive control? i.e., if I select a factory it will toggle on, then toggle off again when I select a combat unit or construction unit?

Those are pretty insane requests I know, but it'd be awesome if they were possible.

Re: Hotkey questions

Posted: 05 Mar 2010, 12:24
by Sabutai
There's the selection editor bundled with Spring. You can assign key combos to different unit types etc. CTRL+W selects all units with weapons. You can make a key combo to select all units with weapons on screen or in a specific distance from the mouse.

Re: Hotkey questions

Posted: 05 Mar 2010, 14:38
by luckywaldo7
You can find some more information about that under "Selection Keys" here: http://trac.caspring.org/wiki/CustomKeys

There is SelectionEditor.exe for windows, is there a way to set these for linux?

Re: Hotkey questions

Posted: 06 Mar 2010, 07:29
by Google_Frog
Is there a way to set up keys that can toggle on and off? I have a big list of hotkeys, most of which use space as a modifier, to avoid conflicting. But I think it's kind of a pita to hit space for all those things, I'd really like to have a way for it to stay on after I push it, and turn off when I push it again. Something similar to SupCom's build mode, perhaps. And, in addition to that, maybe a context sensitive control? i.e., if I select a factory it will toggle on, then toggle off again when I select a combat unit or construction unit?
I think this could be done with a widget that switches hotkeys when a key is pressed.

Re: Hotkey questions

Posted: 06 Mar 2010, 08:35
by Hobo Joe
Google_Frog wrote:
Is there a way to set up keys that can toggle on and off? I have a big list of hotkeys, most of which use space as a modifier, to avoid conflicting. But I think it's kind of a pita to hit space for all those things, I'd really like to have a way for it to stay on after I push it, and turn off when I push it again. Something similar to SupCom's build mode, perhaps. And, in addition to that, maybe a context sensitive control? i.e., if I select a factory it will toggle on, then toggle off again when I select a combat unit or construction unit?
I think this could be done with a widget that switches hotkeys when a key is pressed.

Wish I knew lua.. :(


Thanks for the answers though.

Re: Hotkey questions

Posted: 09 Mar 2010, 18:49
by Hobo Joe
Ok, two more questions - is it possible to bind mouse keys? ie mouse4 and mouse5, I'd really like to use these either as separate groups, or as a button to cycle through groups.

And also is it possible to use non-number keys as groups? I'd like to use this for factories and/or cons.

Thanks!

Re: Hotkey questions

Posted: 10 Mar 2010, 11:19
by Google_Frog
Hobo Joe wrote:And also is it possible to use non-number keys as groups? I'd like to use this for factories and/or cons.
This question makes me think you haven't looked at uikeys.txt (or haven't looked at the right one). The attached uikeys.txt has the syntax for your request.

Re: Hotkey questions

Posted: 10 Mar 2010, 18:24
by Hobo Joe
Am I missing something or is it just more simple than I thought? The only thing I saw related to groups was 'bind Any+# group#'. so could I simply 'bind any+key group11'?