mIRC Homepage

Dbl Click nick completer

Posted By: o0Chris0o

Dbl Click nick completer - 16/03/07 05:57 AM

I have asked this in the past before, but I lost everything when my computer shit to bed. I lost everything. I was able to dbl click a nick and it appeared in the text box like so "nick_is_here: bla bla bla" I had the nick in a yellow color.

Can someone help me out with this? I appreciate it greatly!

Chris
Posted By: Deele

Re: Dbl Click nick completer - 20/03/07 01:43 PM

on ^*:HOTLINK:<*>:#: $iif($replace($1,>,$null,<,$null) ison #,return,halt)
on *:HOTLINK:*:*: editbox -afp $+($replace($1,>,$null,<,$null),:)
(Tested)

Doubleclicking on nick in channel now will that what you want...
cool

PS: If you don't want that : at the end of added nick, then just change:
on *:HOTLINK:*:*: editbox -afp $+($replace($1,>,$null,<,$null),:)
to:
on *:HOTLINK:*:*: editbox -afp $replace($1,>,$null,<,$null)
(Tested)
whistle
Posted By: Riamus2

Re: Dbl Click nick completer - 20/03/07 02:27 PM

To simplify it, all you need to do is go into mIRC's options - Alt-O > Mouse. Then, in the Nick List box, put:

/editbox -afp 08 $+ $$1 $+ 

That's all you need to do.
Posted By: learn3r

Re: Dbl Click nick completer - 20/03/07 02:33 PM

Quote:
Doubleclicking on nick in channel now will that what you want...


that will open the query message...
Posted By: Riamus2

Re: Dbl Click nick completer - 20/03/07 02:35 PM

Originally Posted By: learn3r
Quote:
Doubleclicking on nick in channel now will that what you want...


that will open the query message...


It depends on the setting in the options. Deele probably doesn't have the default /query $$1 in there, so assumed it worked properly.
Posted By: Deele

Re: Dbl Click nick completer - 22/03/07 08:00 AM

Originally Posted By: Riamus2
Originally Posted By: learn3r
Quote:
Doubleclicking on nick in channel now will that what you want...


that will open the query message...


It depends on the setting in the options. Deele probably doesn't have the default /query $$1 in there, so assumed it worked properly.

No, I have smile
This is just like, overriding it...
Try double-cliking in channel window on nick and it will work.
And yes, Riamus variant of code works the same, but I wanted to show, how to do this, in pure remote script wink
Posted By: o0Chris0o

Re: Dbl Click nick completer - 11/04/07 10:25 PM

Thanks guys! working good smile glad I could come here and get some help smile
Posted By: o0Chris0o

Re: Dbl Click nick completer - 11/04/07 10:47 PM

I need help adding color to it instead of having a plain white nick coming out on the channel I want to have it like.

•nick• with color, with the nick being a different color and the bullets being same color. I want to be able to customize the colors and such also. I appreciate anyones help and input! Thanks!
Posted By: Riamus2

Re: Dbl Click nick completer - 12/04/07 04:00 AM

My example showed it with color. You can also place color in front of each $1- in the hotlink script (use $+ between the color and $1-).
Posted By: o0Chris0o

Re: Dbl Click nick completer - 12/04/07 07:58 AM

alright, what about the bullets? or any other design I deside to use?

this is what I got with one bullet, I can't figure the rest out, or where to put the color tags..

Code:
editbox -afp $+($replace($1,>,$null,<,$null),•)
Posted By: Riamus2

Re: Dbl Click nick completer - 12/04/07 05:48 PM

Code:
editbox -afp $+(04•,$replace($1,>,$null,<,$null),•)
Posted By: o0Chris0o

Re: Dbl Click nick completer - 12/04/07 06:18 PM

ahhh ok, I had it there just didn't have the comma

thanks riamus
Posted By: o0Chris0o

Re: Dbl Click nick completer - 12/04/07 06:54 PM

Originally Posted By: Riamus2
Code:
editbox -afp $+(04•,$replace($1,>,$null,<,$null),•)


I tried putting that in the options under mouse

but there isn't enough room and I get "* Invalid format: $+"

Posted By: Riamus2

Re: Dbl Click nick completer - 12/04/07 11:12 PM

That wasn't what I told you to put into the options.

This is what I said to put into the options:
Code:
/editbox -afp 08 $+ $$1 $+ 


You can just put the • in there and it will dow what you wanted.
Posted By: o0Chris0o

Re: Dbl Click nick completer - 14/04/07 01:34 AM

Hey Riamus, I figured it out, it does work exactly how I want it to, but when I close down mIRC it doesn't save the settings for the mouse..any idea why or do you have any other suggestions?

Thanks for your help smile
Posted By: Horstl

Re: Dbl Click nick completer - 14/04/07 02:31 AM

Instead of putting the whole code in the options (which will be stripped restarting mirc), let the options call an alias.
So first, fill "options > mouse > command to perform on double-click > nick list" with e.g.:

nicklistdoubleclick $$1

then add the alias-to-call in your remote, e.g.
Code:
alias nicklistdoubleclick { editbox -afp $+(08•,04,$1,08•) }
Posted By: o0Chris0o

Re: Dbl Click nick completer - 14/04/07 03:17 AM

Alright, I think it worked smile Thanks!

by the way... I am having problems with the same with color codes for my time stamp
Posted By: dtox

Re: Dbl Click nick completer - 14/04/07 05:34 AM

Works with me smile

Posted By: Horstl

Re: Dbl Click nick completer - 14/04/07 01:45 PM

Timestamping can be modified in the options. Control codes used there were stripped each time mirc restarts, as mirc stores that data in inis (mirc.ini in that case).

But, you can let your script re-format timestamps on start:
Code:
on *:start: { .timestamp -f 05[14HH05:14nn05:14ss05] }

This goes to remotes.
Simply combine items of time-and-date (H, ss, tt, zzz etc) with control codes. There is no need for "$+"-ing the line. And dont forget to set colour numbers as duble-digits. smile
Posted By: Riamus2

Re: Dbl Click nick completer - 14/04/07 02:38 PM

Oh, right. Control codes won't save in the ini file. To do the double click thing, you'd just use this in the options:

/editbox -afp $+($chr(3),08,$$1,$chr(3))

That should save fine.
Posted By: o0Chris0o

Re: Dbl Click nick completer - 10/08/08 11:40 PM

sorry to bring this old post back, but I can't get the dots on the both sides of the name, I get the name on double click, but thats all
© 2021 mIRC Discussion Forums