09-14-2013, 02:22 PM
(09-14-2013, 01:35 PM)Mr. Bougo Wrote: Huh. But my code above makes p do what you say.
Here p is supposed to toggle what the g key does.
This is verbatim what I have (I use p now):
set _gkey_mh 0
alias +gkey "+gkey_mh${_gkey_mh}"
alias -gkey "-gkey_mh${_gkey_mh}"
alias +gkey_mh1 "+hook"
alias -gkey_mh1 "-hook"
alias +gkey_mh0 "impulse 220"
alias -gkey_mh0 ""
alias gkey_toggle "-gkey; toggle _gkey_mh; _gkey_toggle2"
alias _gkey_toggle2 "echo ^1g key minsta hook status set to ^3${_gkey_mh}"
bind p gkey_toggle
I did put this in autoexec.cfg cause in config.cfg the code disappears after I start Xon (does this matter). I also bind p gkey_toggle in config.cfg. I missing something obvious but I don't know what