mIRC Home    About    Download    Register    News    Help

Print Thread
#180929 15/07/07 11:50 AM
Joined: Jun 2004
Posts: 55
C
Chrisi Offline OP
Babel fish
OP Offline
Babel fish
C
Joined: Jun 2004
Posts: 55
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?


Gamers.IRC - The best way to use mIRC
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
From the help file:

If there is an input editbox, the ok/yes buttons always return the contents of the editbox.

Joined: Jun 2004
Posts: 55
C
Chrisi Offline OP
Babel fish
OP Offline
Babel fish
C
Joined: Jun 2004
Posts: 55
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.


Gamers.IRC - The best way to use mIRC
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I just assumed it would be the same. Since it's still a yes button.

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
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

Last edited by hixxy; 15/07/07 12:40 PM.
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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.

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
..not when there's an edit box in the input dialog (the 'e' option in 'env')

Joined: Jun 2004
Posts: 55
C
Chrisi Offline OP
Babel fish
OP Offline
Babel fish
C
Joined: Jun 2004
Posts: 55
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

Last edited by Chrisi; 22/07/07 12:18 PM.

Gamers.IRC - The best way to use mIRC

Link Copied to Clipboard