mIRC Homepage
Posted By: Puazzo [6.17] cancelling $$? input request bug - 19/02/06 12:03 PM
Found this bug... example:

alias buggy {
echo -a $$?="Input some text" | echo -a text 2 | echo -a text 3
}


If you click "Cancel" on the input request, then also other commands won't be executed ( echo -a text 2 | echo -a text 3 )
The $$ is halting the script from processing when
cancel is clicked .. try using one $ instead.

type /help $$

~ Edit ~

From mirc.hlp

The double $$ means that this command will only be executed if a parameter is specified. If you specify only one parameter in the above command it will not be executed.
Posted By: hixxy Re: [6.17] cancelling $$? input request bug - 19/02/06 02:35 PM
Please research bugs a little more before posting them. Since the release there's been a flood of bug reports so Khaled could do without having to read things like this.
Posted By: Puazzo Re: [6.17] cancelling $$? input request bug - 19/02/06 05:58 PM
@ mIRCManiac: Hitting "Cancel" should only halt the command in which "$$?" is used.
I can't use $, I MUST use $$.
I try to explain it better with another example:

alias firstrun {
nick $$?="Please insert your nick"
anick $$?="Please insert your alternative nickname"
}

In this case, the user must have the possibility to set/change alternative nick, without setting/changing the main nick.
In 6.17 if you press Cancel at the first request, the entire alias is stopped, so the input request for alternative nick will never come.

In mirc 6.16 it works good, so I suppose it's a bug of v6.17.
Posted By: greeny Re: [6.17] cancelling $$? input request bug - 19/02/06 06:04 PM
$$ has always halted the whole script/alias...
How it should behave in your opinion and how it does
behave are two different things, it doesn't just halt the
command calling it, it halts the entire script processing.

Quote:
In mirc 6.16 it works good, so I suppose it's a bug of v6.17.


It's behaved this way for as long as I can
remember, which is a really long time.
Posted By: hixxy Re: [6.17] cancelling $$? input request bug - 19/02/06 06:05 PM
You're mistaken.

Anyway, you can use something like this:

Code:
if ($?="Enter main nickname:" != $null) nick $v1
if ($?="Enter alternative nickname:" != $null) anick $v1
Posted By: STING Re: [6.17] cancelling $$? input request bug - 19/02/06 08:47 PM
You really shouldn't be using $? anymore.
Khaled already announced in mIRC 5.9 that $? is depracated and $input replaces it. In my opinoin he should have already deleted the feature, just like the old $parm and $parms wink

Does $input works ok for you instead $? ?

Quote:

Note: $input() replaces $?. $? is still supported but no
longer documented.
© mIRC Discussion Forums