mIRC Home    About    Download    Register    News    Help

Print Thread
#128678 28/08/05 09:54 AM
A
alios
alios
A
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,884
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,884
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.

#128680 29/08/05 01:34 AM
D
DaveC
DaveC
D
i think he might have ment commands to the irc server.

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


Link Copied to Clipboard