mIRC Homepage
Posted By: Infernal_Demon Dumb $input - 22/07/04 06:00 PM
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
Posted By: Mentality Re: Dumb $input - 22/07/04 06:05 PM
Maybe you could use $input(bla,nv)?

Regards,
Posted By: Infernal_Demon Re: Dumb $input - 22/07/04 08:13 PM
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
Posted By: tidy_trax Re: Dumb $input - 22/07/04 10:04 PM
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.
© mIRC Discussion Forums