mIRC Home    About    Download    Register    News    Help

Print Thread
#4645 03/01/03 03:02 AM
Joined: Jan 2003
Posts: 4
W
WinZ Offline OP
Self-satisified door
OP Offline
Self-satisified door
W
Joined: Jan 2003
Posts: 4
Need som help to make a popup
I made a popup named FTP Info, I wanted it to show my ftp info this is how i wanted it to look when i push the button :
"MyNick": Ip: xxx
"MyNick": Port: xxx
"MyNick": Login xxx
"MyNick": Pass xxx
How do i Make This ?

At ip i want to say "/dns me", but sometimes i run mode +x and peoples can not /dns me for my ip. If I run mode +x, my host would be like winz.users.undernet.org, and then i want the text behind ip to show /dns "a other nick" instead of "/dns me"
If someone understood what I asked pleas answer me

#4646 03/01/03 03:35 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
What kind of popup is this "FTP Info" popup? A query popup? A nicklist popup? A channel Popup?

Where is this popup supposed to show? In /notice $nick? /msg $nick? /msg $chan? /echo'd just to you?

Assuming you meant only query and nicklist popups and you meant for each of the lines to be a separate message, you could use the following script in a remote file (Alt-R).,
Code:
menu query,nicklist {
  FTP Info: {
    .query $nick $me $+ : IP: /dns $iif(x isin $usermode,MyOtherNick,$me)
    .msg $nick $me $+ : Port: 21
    .msg $nick $me $+ :Login: anonymous
    .msg $nick $me $+ : Pass: email@address
  }
}

Last edited by Hammer; 04/01/03 03:19 AM.

DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#4647 03/01/03 10:55 AM
Joined: Jan 2003
Posts: 4
W
WinZ Offline OP
Self-satisified door
OP Offline
Self-satisified door
W
Joined: Jan 2003
Posts: 4
When i wrote your command in the remot and changeg myothernick in the command to my other nick i get this:

[11:47:00] <WinZ-> IP: /dns WinZ-
[11:47:00] No such nick
[11:47:00] No such nick
[11:47:00] No such nick

As you can see it did not work and even if i pushed the ftp in button on a other query it is only shown in my WinZ- query, and when i use mode +x it is still showing /dns "my nick with mode +x "

#4648 03/01/03 11:11 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Ooops .. not $nick, $1
Code:
menu query,nicklist {
  FTP Info: {
    .query $1 $me $+ : IP: /dns $iif(x isin $usermode,MyOtherNick,$me)
    .msg $1 $me $+ : Port: 21
    .msg $1 $me $+ :Login: anonymous
    .msg $1 $me $+ : Pass: email@address
  }
}

Last edited by Hammer; 04/01/03 03:19 AM.

DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#4649 03/01/03 11:47 AM
Joined: Jan 2003
Posts: 4
W
WinZ Offline OP
Self-satisified door
OP Offline
Self-satisified door
W
Joined: Jan 2003
Posts: 4
Thx, it works now. But here is a other challenge. I want a box to popup where i can fill in information as login and pass. I don't want they to be the same if you understand. Something like when you put in your away information

#4650 03/01/03 11:49 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
/help dialogs

#4651 04/01/03 02:09 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Code:
menu query,nicklist {
  FTP Info: {
    .query $1 $me $+ : IP: /dns $iif(x isin $usermode,MyOtherNick,$me)
    .msg $1 $me $+ : Port: 21
    .msg $1 $me $+ :Login: $iif($?="Login for $1 to use:",$!,anonymous)
    .msg $1 $me $+ : Pass: $iif($?="Password for $1 to use:",$!,email@address)
  }
}

That should do it for you. smile

Edit: *blush* added the e :tongue:

Last edited by Hammer; 04/01/03 03:18 AM.

DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#4652 04/01/03 02:15 AM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
You better make that $usermode smile


Link Copied to Clipboard