An option so that when you hold down an F-Key, it won't perform the alias more than once per push.
alias f1 { /inc -u1 %ky.f5 | if (%key.f5 == 1) Commands Here }
I put that in, and it doesn't work.
Yes because of a typo in his code .. try this
alias f1 {
inc -u1 %key.f1
if (%key.f1 == 1) { [color:red]Command(s) Here[/color] }
}
That doesn't work either. I hold down F1, and the commands are done multiple times.
I tried that too and only difference was, it repeated at 2 second intervals instead of 1 second. Oh and if you press the key and release and then press it again .. it won't work for two seconds ... I could definately see not wanting function keys to repeat.
Edit: But then again .. if you don't want
it to repeat, don't hold the key down
strange
I'm using mIRC v6.1 and it works
Hi. the best way you can avoid it, is using some of the previous methods.
The reason is, when you hold a key, windows reacts as if the key is being pressed quickly.
There is no way to know if you hit very quickly some key, or you just hold it.
Maybe mIRC should have the $keyrpt or whatever it is called available from within an F-key alias?
I guess I should say why I originally posted this. I have F5 to identify a couple of my nicknames. I don't want something happening where the F5 key is accidently held down for an extended period of time.
Those workarounds really should work.. they work here on 6.1.
It works. Odd that it didn't before. Oh well, thanks.