mIRC Home    About    Download    Register    News    Help

Print Thread
#128678 28/08/05 09:54 AM
Joined: Aug 2005
Posts: 5
A
alios Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Aug 2005
Posts: 5
Some of the commands take time to complete, but in my scripts, there're some commands have to be executed before others. is there any way to check that each command has compelted before moving onto the next ?

And after executing a command , is there any signal or return value like in some of programming languages that hold the command's result ? ( successful , failure or others)

thanks !

#128679 28/08/05 10:05 AM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
mIRC scripting is single-threaded*. Each command waits until the previous one has finished before it runs, no matter how long that is. There's no explicit return value, generally speaking if a built-in command fails it will generate an error which will either trigger the error handling routine if you've put one in (see Error handling in the help file) or else it'll simply halt execution of the script.

* - With the exception of $comcall() and $dllcall(), which chances are you're not using.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#128680 29/08/05 01:34 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
i think he might have ment commands to the irc server.

#128681 29/08/05 10:28 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Ahh, well in that case the answer to both of his questions is to use the relevant event for the server response.


Spelling mistakes, grammatical errors, and stupid comments are intentional.

Link Copied to Clipboard