mIRC Home    About    Download    Register    News    Help

Print Thread
#60188 13/11/03 04:27 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
set %wamp $sdir(c:, Select your Winamp Folder)

how would i make that see if i press the "Cansel" button? now it dont give any value, not false or true.. i belived that mirc did a /halt by it self if i press cansel.. but it going to the next line anyway.. and i dont want to put in more %vars for that, and would be useless with a cansel button if it dont make any diffrent on cansel or ok.. confused


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#60189 13/11/03 04:50 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
$$sdir() will halt the script if the user didn't select any file.

#60190 13/11/03 05:42 PM
Joined: Feb 2003
Posts: 282
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Feb 2003
Posts: 282
You can also chekc the value of %wamp .
If you click on cancel. then it becomes null.

Put a line after the line you gave here:
if (%wamp == $null) halt

#60191 13/11/03 05:45 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
$$sdir( ) worked fine.. thnx smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard