mIRC Home    About    Download    Register    News    Help

Print Thread
Proper $input usage #90834 17/07/04 06:53 PM
Joined: Apr 2004
Posts: 66
C
Cyrex Offline OP
Babel fish
OP Offline
Babel fish
C
Joined: Apr 2004
Posts: 66
I would like to know if it is OK to use the /return command to call up an $input() dialog box? I've tested it, and it seems to work fine. But I just want to know if it should be used like this:


dialog test {
title "$input Test"
size -1 -1 87 38
option dbu
button "Button", 1, 0 0 0 0, cancel
button "Test", 2, 25 15 37 12
}

on *:DIALOG:test:sclick:2:{
return $input(This script has performed an illegal operation and will no longer be processed.,oh,mIRC32)
}

Re: Proper $input usage #90835 17/07/04 07:40 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Usually we call $input, $regsub and $findfile (when the returned value is meaningless to the script) with !.echo -q