mIRC Home    About    Download    Register    News    Help

Print Thread
[6.17] cancelling $$? input request bug #142785 19/02/06 12:03 PM
Joined: Oct 2004
Posts: 4
P
Puazzo Offline OP
Self-satisified door
OP Offline
Self-satisified door
P
Joined: Oct 2004
Posts: 4
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 )

Re: [6.17] cancelling $$? input request bug #142786 19/02/06 01:25 PM
Joined: Feb 2005
Posts: 681
M
mIRCManiac Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
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.

Last edited by mIRCManiac; 19/02/06 01:29 PM.
Re: [6.17] cancelling $$? input request bug #142787 19/02/06 02:35 PM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
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.

Re: [6.17] cancelling $$? input request bug #142788 19/02/06 05:58 PM
Joined: Oct 2004
Posts: 4
P
Puazzo Offline OP
Self-satisified door
OP Offline
Self-satisified door
P
Joined: Oct 2004
Posts: 4
@ 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.

Re: [6.17] cancelling $$? input request bug #142789 19/02/06 06:04 PM
Joined: Dec 2002
Posts: 230
G
greeny Offline
Fjord artisan
Offline
Fjord artisan
G
Joined: Dec 2002
Posts: 230
$$ has always halted the whole script/alias...

Re: [6.17] cancelling $$? input request bug #142790 19/02/06 06:04 PM
Joined: Feb 2005
Posts: 681
M
mIRCManiac Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
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.

Re: [6.17] cancelling $$? input request bug #142791 19/02/06 06:05 PM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
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

Re: [6.17] cancelling $$? input request bug #142792 19/02/06 08:47 PM
Joined: Dec 2002
Posts: 122
S
STING Offline
Vogon poet
Offline
Vogon poet
S
Joined: Dec 2002
Posts: 122
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.

Last edited by STING; 19/02/06 08:48 PM.