mIRC Home    About    Download    Register    News    Help

Print Thread
$input() #90534 15/07/04 05:59 AM
Joined: Apr 2004
Posts: 66
C
Cyrex Offline OP
Babel fish
OP Offline
Babel fish
C
Joined: Apr 2004
Posts: 66
According to the mIRC help file, using the v parameter in the $input() identifier is supposed to return $ok, $yes, $no, $cancel for buttons. I tried the following:

Code:
alias test {
  var %debug = $input(Enter text string:,e[color:red]v[/color],Debug)
  echo -a %debug
}


And it did not return $ok, $yes, $no, or $cancel at all. Can someone please post an example how the v parameter is supposed to work?

Re: $input() #90535 15/07/04 07:33 AM
Joined: Dec 2002
Posts: 29
C
Charlie Offline
Ameglian cow
Offline
Ameglian cow
C
Joined: Dec 2002
Posts: 29
parameter v in $input wont to work with parameter e, because the result of $input with parameter e will give back a string, if any, or $null if no string/text given.

Code:
alias inputtest {
  var %msgbox = connect with create new server window? $crlf $&
    $+ 'yes' $chr(9) yes, i will $crlf $&
    $+ 'no' $chr(9) no, keept this one $crlf $&
    $+ 'cancel' $chr(9) back to dialog
  echo -a ::: $input(%msgbox,nqv,information)
}


Charlie