mIRC Home    About    Download    Register    News    Help

Print Thread
Dumb $input #91452 22/07/04 06:00 PM
Joined: Dec 2002
Posts: 56
Infernal_Demon Offline OP
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

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

Regards,


Mentality/Chris
Re: Dumb $input #91454 22/07/04 08:13 PM
Joined: Dec 2002
Posts: 56
Infernal_Demon Offline OP
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

Re: Dumb $input #91455 22/07/04 10:04 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
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