mIRC Home    About    Download    Register    News    Help

Print Thread
#203683 24/08/08 11:47 AM
Joined: Feb 2007
Posts: 234
M
MTec007 Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Feb 2007
Posts: 234
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
}

MTec007 #203686 24/08/08 01:25 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
What's contained in your /onstart alias?

hixxy #203722 25/08/08 01:54 AM
Joined: Feb 2007
Posts: 234
M
MTec007 Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Feb 2007
Posts: 234
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)
}

MTec007 #203726 25/08/08 01:42 PM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Do you have other onSTART events in that script file, or elsewhere in your mIRC scripts?

-genius_at_work

genius_at_work #203727 25/08/08 01:53 PM
Joined: Feb 2007
Posts: 234
M
MTec007 Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Feb 2007
Posts: 234
no this is the only one.

MTec007 #203728 25/08/08 02:29 PM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
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?


Those who fail history are doomed to repeat it
landonsandor #203729 25/08/08 02:39 PM
Joined: Feb 2007
Posts: 234
M
MTec007 Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Feb 2007
Posts: 234
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

MTec007 #203732 25/08/08 05:28 PM
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
Try to run your alias in a timer something like :
Code:
on *:start:.timer -h 1 0 onstart

Last edited by Wims; 25/08/08 05:28 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #203734 25/08/08 07:03 PM
Joined: Feb 2007
Posts: 234
M
MTec007 Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Feb 2007
Posts: 234
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.

Last edited by MTec007; 25/08/08 07:07 PM.
MTec007 #203739 25/08/08 08:05 PM
Joined: Mar 2007
Posts: 139
S
Vogon poet
Offline
Vogon poet
S
Joined: Mar 2007
Posts: 139
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.

Solo1 #203740 25/08/08 08:15 PM
Joined: Feb 2007
Posts: 234
M
MTec007 Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Feb 2007
Posts: 234
go figure, that worked. does mirc ship with /remote off now? if so.. that just... bleh.


Link Copied to Clipboard