What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Timer in a plug-in

Timer in a plug-in
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Timer in a plug-in
quote:
Originally posted by Itsme-HcK
That will make my plug-in run all the time, while it is only supposed to be called once in the <number> minutes...

Your plugin (or at least a process of your plugin) will indeed always run. There is no way around in (in whatever language) as that is exactly what a timer does; it constantly needs a process to run, the process of the timer (what the timer process calls when it fires is another matter, that process doesn't need to be run all the time)...

Calling an external DLL for this is not better. True, you could do that, but even then a process needs to be running all the time. So why call an external process (with all the disadvantgaes of syncronization, or detecting when it needs to end, or whatever) while you can do this from your plugin itself (with the advantage that you have far less troubles, if not none, with syncronizations, etc), and above all, it already runs all time anyways...

quote:
Originally posted by Itsme-HcK
Err, read what I said again. ;)
I will have to parse the MSG's. (Which forces me to run the whole time.)
you parse messages (or whatever you want) in the TimerProc. TimerProc is only fired/called when a timeout occurs.



EDIT: damn, J-Thread was first :p (I always say refresh a thread before replying, but I often forget to do that also)

This post was edited on 12-23-2005 at 12:47 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
12-23-2005 12:44 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Timer in a plug-in - by Itsme-HcK on 12-21-2005 at 12:48 PM
RE: Timer in a plug-in - by (CyBeRDuDe) on 12-21-2005 at 01:22 PM
RE: Timer in a plug-in - by RaceProUK on 12-21-2005 at 02:07 PM
RE: Timer in a plug-in - by Itsme-HcK on 12-21-2005 at 10:03 PM
RE: Timer in a plug-in - by RaceProUK on 12-22-2005 at 11:11 AM
RE: Timer in a plug-in - by Itsme-HcK on 12-22-2005 at 01:45 PM
RE: Timer in a plug-in - by RaceProUK on 12-22-2005 at 04:12 PM
RE: Timer in a plug-in - by Itsme-HcK on 12-22-2005 at 07:50 PM
RE: Timer in a plug-in - by RaceProUK on 12-22-2005 at 08:22 PM
RE: Timer in a plug-in - by J-Thread on 12-23-2005 at 12:25 AM
RE: Timer in a plug-in - by CookieRevised on 12-23-2005 at 12:44 AM
RE: Timer in a plug-in - by Itsme-HcK on 12-23-2005 at 01:45 PM
RE: RE: Timer in a plug-in - by CookieRevised on 12-23-2005 at 03:00 PM
RE: Timer in a plug-in - by Itsme-HcK on 12-23-2005 at 03:26 PM
RE: Timer in a plug-in - by CookieRevised on 12-23-2005 at 04:16 PM
RE: Timer in a plug-in - by RaceProUK on 12-23-2005 at 06:01 PM
RE: Timer in a plug-in - by Itsme-HcK on 12-23-2005 at 06:45 PM
RE: RE: Timer in a plug-in - by CookieRevised on 12-24-2005 at 09:00 PM
RE: Timer in a plug-in - by matty on 12-23-2005 at 06:48 PM
RE: Timer in a plug-in - by (CyBeRDuDe) on 12-23-2005 at 08:09 PM
RE: Timer in a plug-in - by Itsme-HcK on 12-23-2005 at 08:23 PM
RE: Timer in a plug-in - by J-Thread on 12-23-2005 at 09:00 PM
RE: Timer in a plug-in - by ShawnZ on 12-23-2005 at 09:13 PM
RE: Timer in a plug-in - by (CyBeRDuDe) on 12-23-2005 at 10:17 PM
RE: Timer in a plug-in - by Itsme-HcK on 12-24-2005 at 08:57 AM
RE: Timer in a plug-in - by RaceProUK on 12-24-2005 at 11:26 AM
RE: Timer in a plug-in - by Itsme-HcK on 12-24-2005 at 06:03 PM
RE: Timer in a plug-in - by JohnyWalker on 12-27-2005 at 09:32 PM
RE: Timer in a plug-in - by J-Thread on 12-27-2005 at 09:45 PM
RE: Timer in a plug-in - by CookieRevised on 12-28-2005 at 06:17 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On