mIRC Homepage
Posted By: oriongods @ window popup - 18/08/03 01:38 AM
hi, okay i said that i made host.domain scanner on /who *.com
command, BUT when all users come out on @ window i have there popups like WHOIS, QUERY,
well for whois code is this:

menu @Host {
dclick {
Whois:if ($sline(@HostScan,1).ln != 1) { /whois $gettok($line(@HostScan,$sline(@HostScan,1).ln).text,4,32) }
}

but as there is /whois name name command for detailed info
how can i add that whois on thath window as popup and whatz the code?
Posted By: _D3m0n_ Re: @ window popup - 18/08/03 01:42 AM
Whois:if ($sline(@HostScan,1).ln != 1) { /whois $gettok($line(@HostScan,$sline(@HostScan,1).ln).text,4,32) $gettok($line(@HostScan,$sline(@HostScan,1).ln).text,4,32) }

that should add your info twice if im not mistaken on how your script works
Posted By: oriongods Re: @ window popup - 18/08/03 01:46 AM
it says
(03:48) ?? No NickName Given
Posted By: _D3m0n_ Re: @ window popup - 18/08/03 01:56 AM
does that second part of your code return a nickname after the /whois command in its original format?
Posted By: lammkott Re: @ window popup - 18/08/03 01:58 AM
I think you need to go back and read the help file.

You said that you have a popup menu for whois, query, etc., yet you're using a dclick event.

Also, you're setting up the dclick like it's a popup menu with the name:command format.

If you're simply trying to whois a person when you double click on the line, it should be something like:
Code:
menu @window {
  dclick: { whois $sline(@window,1) }
}
Posted By: oriongods Re: @ window popup - 18/08/03 02:02 AM
okay here is the full code:

menu @Host {
dclick {
if ($sline(@HostScan,1).ln == 1) { /window -c @HostScan | halt }
if ($gettok($line(@HostScan,$sline(@HostScan,1).ln).text,4,32) != $null) && ($sline(@HostScan,1).ln >= 8) { /whois $gettok($line(@HostScan,$sline(@HostScan,1).ln).text,4,32) }
}
Query: if ($sline(@HostScan,1).ln != 1) { /query $gettok($line(@HostScan,$sline(@HostScan,1).ln).text,4,32) }
Whois:if ($sline(@HostScan,1).ln != 1) { /whois $gettok($line(@HostScan,$sline(@HostScan,1).ln).text,4,32) }

-
close:/window -c @HostScan
}


and i dont want double click on window i want right click where popup goes, AND YES when i do whois on person it shows in status info bout user
Posted By: oriongods Re: @ window popup - 18/08/03 03:14 AM
- RESOLVED -

if anyone was tracking down my posts AND is interested in this solution, here is ana answer (damn it was easy) !!!:

Whois ++:if ($sline(@HostScan,1).ln != 1) { /set %uhost $gettok($line(@HostScan,$sline(@HostScan,1).ln).text,4,32) | /whois %uhost %uhost
© mIRC Discussion Forums