mIRC Home    About    Download    Register    News    Help

Print Thread
#48469 10/09/03 02:56 PM
Joined: Dec 2002
Posts: 343
D
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 343
An option so that when you hold down an F-Key, it won't perform the alias more than once per push.

#48470 10/09/03 03:32 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
alias f1 { /inc -u1 %ky.f5 | if (%key.f5 == 1) Commands Here }


-KingTomato
#48471 10/09/03 03:41 PM
Joined: Dec 2002
Posts: 343
D
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 343
I put that in, and it doesn't work.

#48472 10/09/03 03:48 PM
Joined: Jun 2003
Posts: 242
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Jun 2003
Posts: 242
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] }
}

#48473 10/09/03 04:24 PM
Joined: Dec 2002
Posts: 343
D
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 343
That doesn't work either. I hold down F1, and the commands are done multiple times.

#48474 10/09/03 05:23 PM
Joined: Jan 2003
Posts: 150
J
Vogon poet
Offline
Vogon poet
J
Joined: Jan 2003
Posts: 150
try this
Code:
alias F9 {
  inc -u[color:red]2[/color] %key
  if (%key == 1) { echo 4 -a F9 pressed: %key  }
}


Go ahead, jump. 100,000 lemmings can't be wrong.
#48475 10/09/03 05:26 PM
Joined: Jun 2003
Posts: 242
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Jun 2003
Posts: 242
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

Last edited by r0ck0; 10/09/03 05:44 PM.
#48476 10/09/03 06:23 PM
Joined: Jan 2003
Posts: 150
J
Vogon poet
Offline
Vogon poet
J
Joined: Jan 2003
Posts: 150
strange grin
I'm using mIRC v6.1 and it works


Go ahead, jump. 100,000 lemmings can't be wrong.
#48477 10/09/03 07:09 PM
Joined: Dec 2002
Posts: 39
L
Ameglian cow
Offline
Ameglian cow
L
Joined: Dec 2002
Posts: 39
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.

#48478 10/09/03 07:13 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Maybe mIRC should have the $keyrpt or whatever it is called available from within an F-key alias?

#48479 11/09/03 06:32 AM
Joined: Dec 2002
Posts: 343
D
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 343
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.

#48480 12/09/03 11:58 AM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Those workarounds really should work.. they work here on 6.1.


* cold edits his posts 24/7
#48481 12/09/03 12:38 PM
Joined: Dec 2002
Posts: 343
D
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 343
It works. Odd that it didn't before. Oh well, thanks.


Link Copied to Clipboard