mIRC Home    About    Download    Register    News    Help

Print Thread
$input with options env #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
Re: $input with options env [Re: Chrisi] #180930 15/07/07 11:53 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
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.

Re: $input with options env [Re: SladeKraven] #180931 15/07/07 11:57 AM
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
Re: $input with options env [Re: Chrisi] #180933 15/07/07 11:59 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
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.

Re: $input with options env [Re: Chrisi] #180936 15/07/07 12:39 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,876
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.
Re: $input with options env [Re: hixxy] #180955 15/07/07 05:16 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
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.

Re: $input with options env [Re: RusselB] #180956 15/07/07 05:18 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,876
..not when there's an edit box in the input dialog (the 'e' option in 'env')

Re: $input with options env [Re: hixxy] #181359 22/07/07 10:58 AM
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)

http://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