Page 1 of 1

unbinding ctrl+a

Posted: 05 Dec 2012, 15:46
by Renofox
I'm having trouble unbinding ctrl+a in the new uikeys.txt. As far as I've understood, this should be how its done:

Code: Select all

unbind Ctrl+a select AllMap++_ClearSelection_SelectAll+
The goal would be to replace it, so ctrl+a would instead select all units of same type as those in selection.

Code: Select all

bind Ctrl+a AllMap++_InPrevSel_SelectAll+
This far, there's something wrong with the unbinding, as even without the rebinding line the ctrl+a hotkeys work normally. I also tried removing the selectkeys in case it was affecting things, but it had no effect either.

So, how do I unbind the select all key?

Re: unbinding ctrl+a

Posted: 05 Dec 2012, 16:04
by Jazcash
Try just this instead:

Code: Select all

unbind Ctrl+a select

Re: unbinding ctrl+a

Posted: 05 Dec 2012, 16:40
by Renofox
Jazcash wrote:Try just this instead:

Code: Select all

unbind Ctrl+a select
It works! I'm still surprisingly stumped by the binding part as well. I have tried bind Ctrl+a AllMap++SelectAll_InPrevSel+ bind Ctrl+a and AllMap++InPrevSel_SelectAll+, but how should selecting unit of types in InPrevSel from AllMap?

Re: unbinding ctrl+a

Posted: 05 Dec 2012, 18:38
by Beherith
bind ctrl+a select AllMap+_InPrevSel+_ClearSelection_SelectAll+

Re: unbinding ctrl+a

Posted: 06 Dec 2012, 11:04
by Renofox
Beherith wrote:bind ctrl+a select AllMap+_InPrevSel+_ClearSelection_SelectAll+
Thanks! It worked, and I even managed to add _Not_ManualFireUnit to remove commander from the selection.

Now I'm baffled by how to do the same for visible units only. I have removed the previous keybinding from ctrl+z, yet the Visible keyword doesn't prevent selecting units beyond the visible area:

Code: Select all

unbind Ctrl+z  select AllMap+_InPrevSel+_ClearSelection_SelectAll+

bind ctrl+z Visible+_InPrevSel_Not_ManualFireUnit+_ClearSelection_SelectAll+