Page 1 of 1

Single key to play, stop on release?

Posted: Mon May 23, 2011 2:03 am
by Woraug
I used to have a script, all it did was when I pressed a key it activated my mic and played my sound while I held the button, and stopped when I released the button. I forgot to backup this script when I formatted the drive I had HLDJ on, and can't find it anymore. Does anyone have it, or can make one up for me?

Sorry if this has been asked before, but I didn't find anything useful in the search.

Re: Single key to play, stop on release?

Posted: Mon May 23, 2011 10:31 pm
by Renegade
you mean like "push-to-transmit" type of behaviour?

Code: Select all

alias +myhldjptt hldj_playaudio_on
alias -myhldjptt hldj_playaudio_off
bind <KEY> +myhldjptt

Re: Single key to play, stop on release?

Posted: Fri May 27, 2011 9:12 pm
by Woraug
Thanks man! Exactly what I was wanting.