mIRC Homepage
Posted By: Skeletor startup load - 01/03/06 03:10 PM
Hi guys,

How would I make a dialog open once from statup, as its an introduction dialog, It only needs to run once, then after that I dont need it loading up?

Code:
 on 1:START: { /dialog -m controlpanel controlpanel }  


What else do i need to add?
Posted By: SoundreameR Re: startup load - 01/03/06 03:55 PM
how do you detect the first start up of mIRC? var?
Posted By: bwr30060 Re: startup load - 01/03/06 04:48 PM
on 1:LOAD:{ would run the first time the script is loaded, and only once.
Posted By: tso29 Re: startup load - 01/03/06 07:11 PM
Quote:
on START event uses the same format as on Load, and triggers the first time a script is loaded and every time after that when mIRC is run.


if you want to detect if a user is runing an mirc-script for the first time on startup see below:

Code:
  
on 1:start:{ 
  inc %startup 
  if (%startup == 1) { dialog -m somedialog somedialog }
}

Posted By: Amadeus Re: startup load - 03/03/06 05:06 AM
this is offtopic...sorry
Posted By: SladeKraven Re: startup load - 03/03/06 07:36 AM
tso29's post was spot on.

Quote:

this is offtopic...sorry


You're telling me.

-Andy
© mIRC Discussion Forums