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?
From the help file:
If there is an input editbox, the ok/yes buttons always return the contents of the editbox.
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.
I just assumed it would be the same. Since it's still a yes button.
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
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.
..not when there's an edit box in the input dialog (the 'e' option in 'env')