mIRC Home    About    Download    Register    News    Help

Print Thread
#186940 28/09/07 11:21 PM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
from the mir chelp:


on LOAD/START

The on LOAD event triggers the first time a script file is loaded.

Format: on <level>:LOAD:<commands>

Example: on 1:LOAD:/echo mIRC Script Loaded!

The on START event uses the same format, and triggers the first time a script is loaded and every time after that when mIRC is run.


so when a script is loaded into remote scripts editor, first time, the on*start acts like an on*load?

pouncer #186942 28/09/07 11:33 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
on 1:start: <- triggers when mirc start "every time"

on 1:load: <- triggers when a script is loaded to mirc. and will only trigger when you load the script, good if you want to set %vars when first loaded, or echo a text to the user the first time they load the file..

Code:
on 1:start: {
 inc %start
 echo -a mirc started for the %start time's.
}

on 1:load: {
  echo -a You just loaded a file to mirc.
}

Last edited by sparta; 28/09/07 11:35 PM.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
pouncer #186948 29/09/07 02:46 AM
Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
Quote:
so when a script is loaded into remote scripts editor, first time, the on*start acts like an on*load?


Yes, you could say that. If you load a script and it has a start event in it, it will process the start event.

pouncer #186949 29/09/07 02:53 AM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Try it and see?

Code:
on *:start:{ echo -a on start }
on *:load:{ echo -a on load }


Link Copied to Clipboard