mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2018
Posts: 221
eahm Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2018
Posts: 221
Posting for archival purposes:

Code
; Opens pop-up when ZNC asks for /quote PASS

on *:SNOTICE:*/quote PASS*: {
  if ($nick == irc.znc.in) {
    .timerQuotePass 1 0 .quote PASS $$!?*"Password*:"
  }
}

Joined: Dec 2021
Posts: 35
T
Ameglian cow
Offline
Ameglian cow
T
Joined: Dec 2021
Posts: 35
You can remove the ! since it is only in affect after you have entered text in the input box. $! refers to the text that was inputted earlier.

Note: $$!?="" should be $$?=""


. : Machine-Gun script named Bauderr with Trio-ircproxy.py : .
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
When used here, the purpose of the ! depends on whether they want to have the input be now or when the timer executes.

You can see the difference in these example. Both of them echo the string to the active window, but the 1st asks for the input right now before launching the timer containing your literal password, while the 2nd one launches the timer now and then waits 4 seconds to ask for the input. Note how there's a different result if your password is the length 8 string $version or is a word beginning with %

Code
//timerQuotePass 1 4 echo -a .quote PASS  $$?*"Password*:" | timerquotepass
//timerQuotePass 1 4 echo -a .quote PASS $$!?*"Password*:" | timerquotepass


Link Copied to Clipboard