I am requesting to add a switch for this:

Code:
c (or something else) - Even in combination with an editbox the negative buttons (no/cancel) return $no, $cancel and not $null. $null is only replied for ok button if the editbox was empty.


Btw: I still don't understand why you say it works as intended.

Code:
v - return $ok, $yes, $no, $cancel for buttons.
...
By default, buttons return $true or $null, same as $?. If there is an input editbox, the ok/yes buttons always return the contents of the editbox.


I don't see why no/cancel should return $null for the ev switches. And who on this earth would type in $false, $cancel, and so on, in an editbox?

In fact it breaks scripts the way as it is at the moment. As a scripter you want to know if the user clicks on ok with an empty editbox of if he clicks on cancel.

Last edited by Chrisi; 01/01/14 07:55 PM.

Gamers.IRC - The best way to use mIRC