Shoutbox

How to call SetNewName periodically? - 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: How to call SetNewName periodically? (/showthread.php?tid=40317)

How to call SetNewName periodically? by llc on 03-17-2005 at 07:51 AM

I'm writing a plugin to call SetNewName in a separate thread, and of course, it does not work. (Reason is mentioned in the API doc)

What I want is to call SetNewName to change nick every 60 seconds.

Does anyone can tell how to write the plugin? Or, just an exe which can achieve the goal?

(I'm using C/C++)

Thanks,
-llc


RE: How to call SetNewName periodically? by segosa on 03-17-2005 at 08:50 AM

SetTimer.


RE: How to call SetNewName periodically? by TheBlasphemer on 03-17-2005 at 10:21 AM

Create a window from the main thread (initialize), and make a little windowmessage to call SetNewName,
then from the other thread, call SendMessage to the window :)
this will probably fix your issue ;)