What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Thread or Window

Pages: (3): « First [ 1 ] 2 3 » Last »
Thread or Window
Author: Message:
CMI
Junior Member
**


Posts: 17
Joined: Jul 2004
O.P. Thread or Window
Is there any way to get a seperate thread or window running from inside a plug in? I'm getting nothing but crashes and errors. It seems the only way to get plug-in to execute code is when MP! calls events. I'd like to get around that.
07-09-2004 11:05 PM
Profile E-Mail PM Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: Thread or Window
There could be security issues; and Plus! doesn't accept many functino calls whose caller isn't in the same thread as plugin's initialize function. Well, sort of, it may be the plugin developer who should solve this problem ;)
07-10-2004 03:03 AM
Profile PM Web Find Quote Report
CMI
Junior Member
**


Posts: 17
Joined: Jul 2004
O.P. RE: RE: Thread or Window
quote:
Originally posted by Mnjul
There could be security issues; and Plus! doesn't accept many functino calls whose caller isn't in the same thread as plugin's initialize function. Well, sort of, it may be the plugin developer who should solve this problem ;)


So that's a "no"?

I don't really see how creating a thread is a security issue... I wouldn't be talking to Plus! anyway. I'd be perfectly happy using the IMessenger interface. This seems to be my only option because I certianly didn't see a timer function for plug-ins in Plus!, which would be nice.
07-10-2004 03:40 AM
Profile E-Mail PM Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: Thread or Window
What kind of timer function do you need? :)
07-10-2004 03:43 AM
Profile PM Web Find Quote Report
CMI
Junior Member
**


Posts: 17
Joined: Jul 2004
O.P. RE: RE: Thread or Window
quote:
Originally posted by Mnjul
What kind of timer function do you need? :)


I just need a function inside a plug-in that can either use IMessenger or talk to Plus! and will be triggered predictably at least every couple of seconds.
07-10-2004 04:15 AM
Profile E-Mail PM Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: Thread or Window
You can set IMessenger as a global variable and use SetTimer in Initialize, and set up a TimerProc call back function, I think...
07-10-2004 04:59 AM
Profile PM Web Find Quote Report
CMI
Junior Member
**


Posts: 17
Joined: Jul 2004
O.P. RE: RE: Thread or Window
quote:
Originally posted by Mnjul
You can set IMessenger as a global variable and use SetTimer in Initialize, and set up a TimerProc call back function, I think...


I thought about that but for some reason I didn't think it would work. I guess I'll give it a shot, since I can't think of a good reason it wouldn't work.
07-10-2004 05:51 AM
Profile E-Mail PM Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: Thread or Window
Well, perhaps you may give it a try and if it doesn't really work, we can have further discussion ;)
07-10-2004 07:12 AM
Profile PM Web Find Quote Report
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
31 / Male / Flag
Joined: Mar 2003
Status: Online
RE: Thread or Window
Also in what programing language are you gonna do it?
Because if it is in VB then i have an example to show you how to use the SetTimer api ;)
YouTube closed-captions ripper (also allows you to download videos!)
07-10-2004 07:18 AM
Profile E-Mail PM Web Find Quote Report
Millenium_edition
Veteran Member
*****

Avatar

Posts: 1787
Reputation: 57
Joined: Apr 2003
RE: Thread or Window
what you can do is reference the MessengerAPI
the use
code:
Private WithEvents objMessenger As MessengerAPI
Then in the initialize function
code:
Set objMessenger = <insert object name here>
Replace <insert object name here> with the Messenger object Initialize provides.

Also, you can use Class_Initialize and Class_Terminate to show/hide your forms (in vb) and there you can do what you want :)
07-10-2004 08:35 AM
Profile E-Mail PM Find Quote Report
Pages: (3): « First [ 1 ] 2 3 » Last »
« Next Oldest Return to Top Next Newest »


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