mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 18
Krafo Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Dec 2002
Posts: 18
Hello ppl, can someone help me make a nick completer pls?



Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
Did you know mIRC already has one?
Start typing in a nick then press tab.

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Code:
on 1:INPUT:#:{
  if ($chr(58) isin $1) { 
    set %nick $remove($1,:)
    set %n 0
    :start
    inc %n
    if ($nick($active,%n) == $null) { echo -a < $+ $me $+ > $1- | .msg $active $1- | halt }
    if ($left($nick($active,%n),$len(%nick)) == %nick) {
      set %nick $nick($active,%n)

      echo -a < $+ $me $+ > %nick $+ : $2- | .msg $active $- %nick $+ : $2- | halt
      halt
    }
    goto start
  }
}

put that in your remote.. ALT + R in mirc..


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Dec 2002
Posts: 18
Krafo Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Dec 2002
Posts: 18
Yes, but i would like to do it like the following: «avenger»
I know about the start typing the nick and then press the tab key, but i actually would like that when i type the nickname and press the tab key it displays it like this «avenger» .. and maybe it would be also convenient to put it, as when i type : after the nickname it does it like that..cause i don't want to display the nickname in that way when mentioning someones nickname in a sentence..only when addressing a nickname, like:

«avenger» How can we help you?

Thankx in advance
Chris.

Joined: Nov 2003
Posts: 67
C
Babel fish
Offline
Babel fish
C
Joined: Nov 2003
Posts: 67
Code:
ON *:INPUT:#:{
  if ($1 ison $active) { say $+(«,$1,») $2- | halt }
}


irc.universochat.net
#escripting
Joined: Apr 2003
Posts: 426
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 426
The issue here is that currently, mIRC can only detect keypresses within custom windows.

In order for your idea to work, you need to be able to detect when the TAB key is pressed in an editbox to complete a nickname. As far as I know, mIRC itself can't do it. I'm quite sure a DLL exists that allows you to detect this.


--------
mIRC - fun for all the family (except grandma and grandpa)
Joined: Dec 2002
Posts: 18
Krafo Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Dec 2002
Posts: 18
Thankx all of you, i just have a problem, i used Canario's code because it's quite simple and straight forward, when i use it, it doubles the sentence which begins with the nickname, like the following:

<Revenger-> Revenger- hi
<Revenger-> «Revenger-» hi

I've solved this problem by unloading the other scripts running, as i pasted the nick completer code in a seperated *.ini file. Can someone help me solve this problem pls? without having to unload the other scripts? Thankx in advance for ur help.

Regards
Chris.

Last edited by Krafo; 08/12/03 08:07 PM.
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
do others see it twice?

else, you can't solve it unless you put the completer code in the other script...


If it ain't broken, don't fix it!
Joined: Dec 2002
Posts: 18
Krafo Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Dec 2002
Posts: 18
yes sure, other users also see it twice.


Link Copied to Clipboard