mIRC Home    About    Download    Register    News    Help

Print Thread
#56109 19/10/03 01:58 PM
Joined: Oct 2003
Posts: 68
Y
yamaz Offline OP
Babel fish
OP Offline
Babel fish
Y
Joined: Oct 2003
Posts: 68
I'm a lot rusty with scripting....can you please help me in this simple thing? I need a very simple dialog with only some text and an "ok" button that closes the dialog itself....like a simple window message box....thanks smile

#56110 19/10/03 02:33 PM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
$input(Warning! Do you really want to press the OK button?,owd,mIRC input request)

There are other options available besides o, w and d, read /help $input for a full list.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#56111 19/10/03 03:29 PM
Joined: Oct 2003
Posts: 68
Y
yamaz Offline OP
Babel fish
OP Offline
Babel fish
Y
Joined: Oct 2003
Posts: 68
thanks but how can I avoid that $true that spawns in the active window when I press "OK" ?

#56112 19/10/03 03:45 PM
Joined: Oct 2003
Posts: 68
Y
yamaz Offline OP
Babel fish
OP Offline
Babel fish
Y
Joined: Oct 2003
Posts: 68
i'll be clearer: in the active windows spawns the error message " "$true" unknown command" since $input always returns $true or $null

#56113 19/10/03 04:02 PM
Joined: Oct 2003
Posts: 50
T
Babel fish
Offline
Babel fish
T
Joined: Oct 2003
Posts: 50
//.echo -q $input(Warning! Do you really want to press the OK button?,owd,mIRC input request)

#56114 19/10/03 04:03 PM
Joined: May 2003
Posts: 161
A
Vogon poet
Offline
Vogon poet
A
Joined: May 2003
Posts: 161
2 ways to do it

$null($input(Warning! Do you really want to press the OK button?,owd,mIRC input request))

.echo -q $input(Warning! Do you really want to press the OK button?,owd,mIRC input request)

#56115 19/10/03 04:06 PM
Joined: Oct 2003
Posts: 68
Y
yamaz Offline OP
Babel fish
OP Offline
Babel fish
Y
Joined: Oct 2003
Posts: 68
sorry guys it was a stupid question.....i did that:

{
%var =$input(Warning! Do you really want to press the OK button?,owd,mIRC input request)
.unset %var
}

so the $true is returnet to the variable.

By the way the ways you mentioned are cooler.

Thanks smile

#56116 19/10/03 04:14 PM
Joined: Oct 2003
Posts: 8
A
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
A
Joined: Oct 2003
Posts: 8

Code:
 {
if ( $input(Warning! Do you really want to press the OK button?,owd,mIRC input request) == $true ) {

;Want to push button

}
else {

;Dont want to push button

}
}  


- Aazn


( www.nnscript.de )

Link Copied to Clipboard