mIRC Homepage
Posted By: MTec007 on start - 24/08/08 11:47 AM
this code doesn't work, but if i manually run /onstart the alias will fire. is there something i am missing? here?
on *:start:{
onstart
}
Posted By: hixxy Re: on start - 24/08/08 01:25 PM
What's contained in your /onstart alias?
Posted By: MTec007 Re: on start - 25/08/08 01:54 AM
just a bunch of statistical "echo -s" lines

alias onstart {
echo -s mIRC Co. Ltd. mIRC v $+ $version ( $+ $bytes($file($mircexe).size,m3d).suf $+ ) on Microsoft Windows $os ( $+ $duration($uptime(system)) $+ )
echo -s Portable: $portable
echo -s Started %started times since %since
echo -a Current Nick: $me
echo -s Today is $asctime(dddd mmmm doo yyyy)
echo -s Current time is: $asctime(h:n:st)
echo -s Total Online Timer: $duration($online)
}
Posted By: genius_at_work Re: on start - 25/08/08 01:42 PM
Do you have other onSTART events in that script file, or elsewhere in your mIRC scripts?

-genius_at_work
Posted By: MTec007 Re: on start - 25/08/08 01:53 PM
no this is the only one.
Posted By: landonsandor Re: on start - 25/08/08 02:29 PM
Question - when you copied the code in, I noticed there was no space at the begining of the code line. Are there any spaces at the begining? (I doubt it would really matter, but if there's no spaces, you could have a bracket mismatch error somewhere)

Code:
on *:start:{
onstart
}


If everythign holds true, there should be 2 spaces at the begining of the line:

Code:
on *:start:{
  onstart
}


I'm just checking all bases. I KNOW you said if you TYPE it, it fires. My next question is this, if you moved the code like this:

Code:
on *:start: {
  echo -s mIRC Co. Ltd. mIRC v $+ $version ( $+ $bytes($file($mircexe).size,m3d).suf $+ ) on Microsoft Windows $os ( $+ $duration($uptime(system)) $+ )
  echo -s Portable: $portable
  echo -s Started %started times since %since
  echo -a Current Nick: $me
  echo -s Today is $asctime(dddd mmmm doo yyyy)
  echo -s Current time is: $asctime(h:n:st)
  echo -s Total Online Timer: $duration($online)
}



Does it fire off?
Posted By: MTec007 Re: on start - 25/08/08 02:39 PM
in the script editor there are 2 spaces, yes and i did a bracket check, nothing caused any errors and the 'new' on start event didn't fire either. some reason is causing that on start event not to fire at all

for clarification: http://e-motz.com/uploads/startup.mrc
Posted By: Wims Re: on start - 25/08/08 05:28 PM
Try to run your alias in a timer something like :
Code:
on *:start:.timer -h 1 0 onstart
Posted By: MTec007 Re: on start - 25/08/08 07:03 PM
it didnt work.
should i have to use a timer? it has been a while since i was active in mirc script and i do not remember a lot, but i don't remember having to do that.
Posted By: Solo1 Re: on start - 25/08/08 08:05 PM
I tried it and it worked fine.
Try and paste the script into a new file and see if that works are type /remote on and retry.
Posted By: MTec007 Re: on start - 25/08/08 08:15 PM
go figure, that worked. does mirc ship with /remote off now? if so.. that just... bleh.
© mIRC Discussion Forums