Shoutbox

Event happening every x minutes - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: Event happening every x minutes (/showthread.php?tid=42445)

Event happening every x minutes by RoGx on 04-10-2005 at 11:32 PM

Hello,

I just started programming my own plugin. I need to know if there's a way to tell Messenger Plus to run my plugin every like 5 minutes

I want my plugin to show my counter-strike ip address beside my nick. So every 5 minutes, it will look for a different ip, if its different, it changes the nick. If not, it does nothing.

So I need to know how to execute a command every x minutes.

Thanks!


RE: Event happening every x minutes by Choli on 04-11-2005 at 08:07 PM

No, Plus can't do that; but maybe Windows can help you. You should call the API SetTimer. The way of doing that depends on the language you're programming the plugin. You can find more info about that API in http://msdn.microsoft.com/library/default.asp?url...tions/settimer.asp and searching it in Google :)


RE: Event happening every x minutes by (CyBeRDuDe) on 04-11-2005 at 09:01 PM

Doing VB? or c++?...
I don't know about c++, but in vb you can do this:
Create a plugin using the plugin api from the msgplus.net, then add a form, and add a timer to that form... Make sure the plugin is still set to start on the plugin class... Then in initilize just enable the timer...
In timer just call the SetNewName api and there you go! :D..