mIRC Home    About    Download    Register    News    Help

Print Thread
#91452 22/07/04 06:00 PM
Joined: Dec 2002
Posts: 56
Babel fish
OP Offline
Babel fish
Joined: Dec 2002
Posts: 56
If I have:

//echo -s $input(bla,n)

If I press the yes button it will return $true which is ok, if I press the no button it will return $false which is ok too, but if I press on the cancel button it will also return $false, now how am I suppose to know if a user pressed the cancel button. I CAN´T. Because no and cancel both return the same thing - $false - This is wrong. The cancel button can´t return the same as the no button, if it does what´s the point?

frown

#91453 22/07/04 06:05 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
Maybe you could use $input(bla,nv)?

Regards,


Mentality/Chris
#91454 22/07/04 08:13 PM
Joined: Dec 2002
Posts: 56
Babel fish
OP Offline
Babel fish
Joined: Dec 2002
Posts: 56
yeah, I noticed that after I posted, but it should do it automatically smirk there is no sense in having a cancel button if it´s going to return the same as the no. I think number would be more appropriate for this, like so:
1 = true
0 = false
2 = cancel

but thats just me smile

#91455 22/07/04 10:04 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
I don't think it should do what you want by default, an installer would use this sort of thing: yes = install, no and cancel = don't install.


New username: hixxy

Link Copied to Clipboard