Hotkey questions

Hotkey questions

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
User avatar
Hobo Joe
Posts: 1001
Joined: 02 Jan 2008, 21:55

Hotkey questions

Post 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.
User avatar
Sabutai
Posts: 413
Joined: 18 Dec 2005, 05:55

Re: Hotkey questions

Post 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.
luckywaldo7
Posts: 1398
Joined: 17 Sep 2008, 04:36

Re: Hotkey questions

Post 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?
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Hotkey questions

Post 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.
User avatar
Hobo Joe
Posts: 1001
Joined: 02 Jan 2008, 21:55

Re: Hotkey questions

Post 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.
User avatar
Hobo Joe
Posts: 1001
Joined: 02 Jan 2008, 21:55

Re: Hotkey questions

Post 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!
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Hotkey questions

Post 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.
Attachments
uikeys.txt
(21.61 KiB) Downloaded 23 times
User avatar
Hobo Joe
Posts: 1001
Joined: 02 Jan 2008, 21:55

Re: Hotkey questions

Post 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'?
Post Reply

Return to “General Discussion”