mIRC Home    About    Download    Register    News    Help

Print Thread
#231500 20/04/11 07:36 PM
Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
When mIRC starts, as it initializes each script does it fire that script's "On Start" event or does it initialize all scripts THEN go through the script list triggering "on Start" for each?

The following would lead me to believe it initializes all scripts THEN goes through the script list triggering "On Start" for each

test1.mrc (Before test2.mrc in script/load order):
Code:
on *:START:{
  if ($LoadTest) { echo -s test2.mrc initialized }
  else { echo -s test2.mrc not initialized }
}
Test2.mrc (After test1.mrc in script/load order):
Code:
alias LoadTest return 1
With the previous scripts loaded, when mIRC starts "test2.mrc initialized" gets echo'ed to the status.

Last edited by FroggieDaFrog; 20/04/11 07:54 PM.

I am SReject
My Stuff
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Someone can correct me if I'm wrong, but any remotes/aliases/popups in mIRC.ini are there as soon as mIRC starts. It doesn't load them individually. So if you have an alias in any file that is in mIRC.ini, it will be available to any script file's on start event if that script file is also loaded.


Invision Support
#Invision on irc.irchighway.net
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
To my knowledge that is correct, with the exception of local aliases that are in the Remotes section.


Link Copied to Clipboard