mIRC Homepage
Posted By: Doomstars F-Keys - 10/09/03 02:56 PM
An option so that when you hold down an F-Key, it won't perform the alias more than once per push.
Posted By: KingTomato Re: F-Keys - 10/09/03 03:32 PM
alias f1 { /inc -u1 %ky.f5 | if (%key.f5 == 1) Commands Here }
Posted By: Doomstars Re: F-Keys - 10/09/03 03:41 PM
I put that in, and it doesn't work.
Posted By: r0ck0 Re: F-Keys - 10/09/03 03:48 PM
Yes because of a typo in his code .. try this
Code:
alias f1 {
  inc -u1 %key.f1
  if (%key.f1 == 1) { [color:red]Command(s) Here[/color] }
}
Posted By: Doomstars Re: F-Keys - 10/09/03 04:24 PM
That doesn't work either. I hold down F1, and the commands are done multiple times.
Posted By: J0ke Re: F-Keys - 10/09/03 05:23 PM
try this
Code:
alias F9 {
  inc -u[color:red]2[/color] %key
  if (%key == 1) { echo 4 -a F9 pressed: %key  }
}
Posted By: r0ck0 Re: F-Keys - 10/09/03 05:26 PM
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 wink
Posted By: J0ke Re: F-Keys - 10/09/03 06:23 PM
strange grin
I'm using mIRC v6.1 and it works
Posted By: Larra Re: F-Keys - 10/09/03 07:09 PM
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.
Posted By: codemastr Re: F-Keys - 10/09/03 07:13 PM
Maybe mIRC should have the $keyrpt or whatever it is called available from within an F-key alias?
Posted By: Doomstars Re: F-Keys - 11/09/03 06:32 AM
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.
Posted By: cold Re: F-Keys - 12/09/03 11:58 AM
Those workarounds really should work.. they work here on 6.1.
Posted By: Doomstars Re: F-Keys - 12/09/03 12:38 PM
It works. Odd that it didn't before. Oh well, thanks.
© mIRC Discussion Forums