mIRC Home    About    Download    Register    News    Help

Print Thread
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 )

Joined: Feb 2005
Posts: 681
M
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.
Joined: Sep 2005
Posts: 2,881
H
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.

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.

Joined: Dec 2002
Posts: 230
G
Fjord artisan
Offline
Fjord artisan
G
Joined: Dec 2002
Posts: 230
$$ has always halted the whole script/alias...

Joined: Feb 2005
Posts: 681
M
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.

Joined: Sep 2005
Posts: 2,881
H
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

Joined: Dec 2002
Posts: 122
S
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.

Link Copied to Clipboard