mIRC Homepage
Posted By: RusselB Another menu question - 31/10/06 06:34 AM
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.
Posted By: deegee Re: Another menu question - 31/10/06 06:45 AM
Code:
  WhoIs : .whois $$input(Enter nick,e,Whois,$1)
Posted By: MikeChat Re: Another menu question - 31/10/06 06:48 AM
$input might be what you want

.whois 2:whois $input(/Whois $1 or Input Desired nick,e,Whois Request,$1)
Posted By: RusselB Re: Another menu question - 31/10/06 07:27 AM
Thanks to both of you...that's exactly what I was looking for
Posted By: deegee Re: Another menu question - 31/10/06 07:51 AM
Be sure to use the $$ or it will send an empty whois request. wink
Posted By: RusselB Re: Another menu question - 31/10/06 09:32 AM
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
© mIRC Discussion Forums