mIRC Home    About    Download    Register    News    Help

Print Thread
#163504 31/10/06 06:34 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Is it possible to have the value of an identifier used as the default entry, but still allowing it to be changed.

With this
Code:
menu nicklist {
.WhoIs : .whois $$?="Nick"
}  
it will ask me for a nick
With
Code:
menu nicklist {
.WhoIs : .whois $1
}  
It will whois the nick that is already highlighted
With
Code:
menu nicklist {
.WhoIs : .whois $$?1="Nick"
}  
It will whois the highlighted nick, if there is one, otherwise it'll ask me for a nick

What I want to do (if possible) is something like the last one, but where the actual nick is displayed already in the edit box, so that I can either press OK, Cancel, or edit the nick

If that doesn't make sense, I partially blame it on the fact that my body still seems to be running on Daylight savings time, so it thinks it's about 2:30 am now.

#163505 31/10/06 06:45 AM
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Code:
  WhoIs : .whois $$input(Enter nick,e,Whois,$1)

#163506 31/10/06 06:48 AM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
$input might be what you want

.whois 2:whois $input(/Whois $1 or Input Desired nick,e,Whois Request,$1)

#163507 31/10/06 07:27 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Thanks to both of you...that's exactly what I was looking for

#163508 31/10/06 07:51 AM
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Be sure to use the $$ or it will send an empty whois request. wink

#163509 31/10/06 09:32 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Yeah, I know. I was only using Whois as an example, since I have an (blow my own trumpet here) excellent Whois dialog script that I wrote.

If anyone's interested in seeing/using it, it's available here


Link Copied to Clipboard