mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2004
Posts: 124
S
sigbin Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jun 2004
Posts: 124
Code:
  
On *:notice:Your IRC Client did not support a password.*:?:{
  /quote PASS $$input(Enter psyBNC Password:,2)
  clear
}


* $input: cannot use in an event (line 2, script.ini)

======================================================

can sumone help me fix that....
i dont know scripting...

Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
For the $input you need to store its value on a variable for then using it.
Code:
On *:notice:Your IRC Client did not support a password.*:?:{
  var %pass = $$input(Enter psyBNC Password:,2)
  quote PASS %pass
  clear
}
This should fix it smile

Zyzzyx.


"All we are saying is give peace a chance" -- John Lennon
Joined: Jun 2004
Posts: 124
S
sigbin Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jun 2004
Posts: 124
* $input: cannot use in an event (line 2, script.ini)

still...

can i ask you to make me a script which will detect this "Your IRC Client did not support a password." and popsup an input box.. that input box should be masked... like for password...

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
I don't believe that is correct.

sigbin:
Try this:
Code:
On *:notice:Your IRC Client did not support a password.*:?:{
  .timer 1 0 raw PASS $!input(Enter psyBNC Password:,2)
  clear
}
The timer and the ! mean that $input is called outside of the event. If you're using the /clear command to hide the password you can use . to silence the /raw command's visual output, instead of clearing the window.
Code:
On *:notice:Your IRC Client did not support a password.*:?:{
  .timer 1 0 .raw PASS $!input(Enter psyBNC Password:,2)
}
You should probably also check who sent the notice, so people can't bring up millions of input boxes on your screen smile

Edit (after sigbin's new post):
You can make the editbox a password-style box by changing the 2 to a 6, i.e.:
Code:
On *:notice:Your IRC Client did not support a password.*:?:{
  .timer 1 0 .raw PASS $!input(Enter psyBNC Password:,6)
}
Also note that the $input flags were updated, the only reason numbers still work is for compatability with old scripts, $!input(Enter psyBNC Password:,p) would use the new method.

Last edited by Collective; 01/10/04 02:06 PM.
Joined: Jun 2004
Posts: 124
S
sigbin Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jun 2004
Posts: 124
=======================================================
-
>»º¿º«< -Welcome- psyBNC2.3.2-4
-
>»º¿º«< --psyBNC- Your IRC Client did not support a password. Please type /QUOTE PASS yourpassword to connect.
-
=======================================================

thats the text im going to detect it for the psybnc....

after i input the password the status window will clear...

Joined: Jun 2004
Posts: 124
S
sigbin Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jun 2004
Posts: 124
btw... thankz for the help... ,V..

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
I'm not sure why you're posting that, is there a problem with the script I gave?

You can check to see if "-psyBNC" is sending the notice with this script:
Code:
On *:notice:Your IRC Client did not support a password.*:?:{
  if ( $nick == -psyBNC ) {
    .timer 1 0 raw PASS $!input(Enter psyBNC Password:,6)
    clear
  }
}

Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
You're correct, that won't work smirk

Quick question: why do you use the /raw command in the timer? Couldn't you use /quote as well?

Zyzzyx smile


"All we are saying is give peace a chance" -- John Lennon
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
I could use /quote, but I rewrote that bit from scratch and automatically used /raw instead

Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Oh, ic.. Just looked at the help file and it said: /raw [-q] <command>: ...This command does the same thing as /quote in other IRC clients. :P

thanks smile


"All we are saying is give peace a chance" -- John Lennon

Link Copied to Clipboard