mIRC Home    About    Download    Register    News    Help

Print Thread
#136043 22/11/05 04:51 AM
Joined: May 2005
Posts: 1
F
Foxst0r Offline OP
Mostly harmless
OP Offline
Mostly harmless
F
Joined: May 2005
Posts: 1
So, $input cannot be used in events, can it be used in an alias? Ive tryed but I seem to be overlooking the correct usage method..
can anyone point me in the right direction?

#136044 22/11/05 06:03 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
alias moo {
  var %input = $$?="Blah.."
  echo -a %input
}


-Andy

#136045 22/11/05 08:31 AM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
despite what it says there in the help file:
alias testin {
var %input = $input(this is a $ctrl Test,nv)
if (%input == $yes) { echo -s $+($,input) returned %input }
if (%input == $no) { echo -s $+($,input) returned %input }
if (%input == $cancel) { echo -s $+($,input) returned %input }
}

or

alias testin {
var %input = $input(this is a $ctrl Test,eo)
if (%input) { echo -s $+($,input) returned %input }
}


both work, so I think that the identifier has changed, I know in older versions, numbers, not letters, were used for the button options.
Maybe the behaviour has changed but the comment remains.


Link Copied to Clipboard