mIRC Homepage
Posted By: Thom427 Looking for a Timed Message Script - 14/06/11 02:29 PM
Hello, I had a timed message script, but not working in windows7?... Anyone have a script that would announce a message in a channel like every hour that will work with W7? Thanks in advance.
Posted By: Masoud Re: Looking for a Timed Message Script - 14/06/11 03:52 PM
I'm on Windows 7 and everything works fine.
All you need is a /timer with a specific time to announce and a message.
Example:
Code:
/timerAnnounce 0 60 msg #MyChannel Hey everybody!

This would send "Hey everybody!" to "#MyChannel" every 60 seconds.
Posted By: Riamus2 Re: Looking for a Timed Message Script - 14/06/11 04:17 PM
Yeah, a normal announcer script should work just fine regardless of OS version or mIRC version. Those are very simple (just a timer and possibly a dialog), so nothing should be changed that would affect it directly. Perhaps another part of your script that does something else has the problem.

In any case, a timer is all you need as was mentioned. 3600 is an hourly timer. Here's an example that lets you enable it from a right click menu (right click while in a channel):

Code:
menu channel {
  Announce
  .Start: .timerAnnounce. $+ $chan 0 3600 msg $chan $$?="Enter message..."
  .Stop: .timerAnnounce. $+ $chan off
}


Edited with Start/Stop menu items rather than just Start. You can run one announcement per channel with this and it's not network specific, so an ad in #chan1 on network1 will appear in #chan1 on network2 if you have that channel open. Additional options for multiple network support and multiple ads for each channel would require a bit more. This is just a basic announce script.
Posted By: Thom427 Re: Looking for a Timed Message Script - 14/06/11 04:57 PM
Thanks Everyone smile
Posted By: Thom427 Re: Looking for a Timed Message Script - 14/06/11 06:43 PM
Thanks I like this!
© mIRC Discussion Forums