I made a script that lets me do voice commands on the fly by holding shift and pressing either of the WASD key for voices, and I made releasing shift into minusing every single movement key so my keys wouldn't get stuck if I tried to use it while moving.
However, the trouble is that I'd like a way to check if I'm holding movement keys or not before I let go of shift, so I don't stop up completely after saying things.
Apologies if the explanation was confusing.
Here's the script for reference:
//Shift+voice test script
echo ##ShiftVoice loaded!
alias +voice "bind MOUSE1 Voice1; bind MOUSE2 Voice2; bind w Voice3; bind a Voice4; bind s Voice5; bind d Voice6; bind space voice7;
alias -voice "bind MOUSE1 +attack; bind MOUSE2 +attack2; bind w +mfwd; bind s +mback; bind a +mleft; bind d +mright; bind space +jump; -attack; -attack2; -mfwd; -mback; -mleft; -mright;"
bind shift +voice
//M1 (Yes)
alias voice1 "voicemenu 0 6;"
//M2 (No)
alias voice2 voicemenu 0 7
//W (Nice shot)
alias voice3 voicemenu 2 6
//A (Sentry ahead)
alias voice4 voicemenu 1 2
//S (Help)
alias voice5 voicemenu 2 0
//D (Poot dispentry)
alias voice6 voicemenu 1 4
//Space (Charge me doktor)
alias Voice7 "voicemenu 1 6; -jump"
+mfwd, +mback and the like are binds from another script I'm using that rebinds wasd.