mIRC Homepage
Posted By: Chrisi $input with options env - 15/07/07 11:50 AM
I need $input with editbox and 3 buttons:
//echo -a $input(title,env,prompt,edit)
This returns edit/$null/$null
But with the v option it should return: "$ok, $yes, $no, $cancel for buttons."

If I use //echo -a $input(a,nv) it works correctly. So why doesn't it with e+n+v options?
Is this a bug?
Posted By: SladeKraven Re: $input with options env - 15/07/07 11:53 AM
From the help file:

If there is an input editbox, the ok/yes buttons always return the contents of the editbox.
Posted By: Chrisi Re: $input with options env - 15/07/07 11:57 AM
yes?
Well that would be ok. But I am not interested in the "ok/yes buttons"
I want to know If no/cancel was pressed. Why should I use 3 buttons, if mIRC only returns 2 different things?

From the help file:
v - return $ok, $yes, $no, $cancel for buttons.
Posted By: SladeKraven Re: $input with options env - 15/07/07 11:59 AM
I just assumed it would be the same. Since it's still a yes button.
Posted By: hixxy Re: $input with options env - 15/07/07 12:39 PM
I agree that mIRC should return $no or $cancel instead of $null.. make a feature suggestion.

Edit: Slade, what he's saying is that when "yes" is selected it should return the text, but when no/cancel is selected it should return $no or $cancel
Posted By: RusselB Re: $input with options env - 15/07/07 05:16 PM
When using the 3 button option, the Yes button can be checked by comparing with $true, the No button with $false and the Cancel button with $null

If there's documentation to show this, I haven't found it. I found this information using trial and error.
Posted By: hixxy Re: $input with options env - 15/07/07 05:18 PM
..not when there's an edit box in the input dialog (the 'e' option in 'env')
Posted By: Chrisi Re: $input with options env - 22/07/07 10:58 AM
I posted this as a bug report. (because I don't request a new feature)

https://forums.mirc.com/ubbthreads.php?ubb=showflat&Number=181358&page=1#Post181358
© mIRC Discussion Forums