What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Detecting Window Resize

Pages: (2): « First « 1 [ 2 ] Last »
Detecting Window Resize
Author: Message:
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Detecting Window Resize
It depends exactly how the API is instantiated. If it's via CreateObject() or similar, Windows Messenger will run. Other means won't necessarily do that.
[Image: spartaafk.png]
11-01-2006 06:53 PM
Profile PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
O.P. RE: Detecting Window Resize
code:
try{
var MessengerAPI = new ActiveXObject("Messenger.UIAutomation.1");
} catch(exception){
Debug.Trace("Error occured creating the messenger API object, make sure you have windows messenger installed");
}
        var MessengerWnd = MessengerAPI.IMessengerWindow;
        MessengerWnd = MessengerAPI.Window;

Thats how I'm calling it... Doesn't seem to do any harm :p
<Eljay> "Problems encountered: shit blew up" :zippy:
11-01-2006 06:57 PM
Profile PM Find Quote Report
vikke
Senior Member
****

Avatar

Posts: 900
Reputation: 28
31 / Male / Flag
Joined: May 2006
RE: Detecting Window Resize
Spunky: You'll need CALLBACK function in your hook procedure (it's the Windows Message Event). To create that, you'll need a dll. That's why scripting can't hook without a dll.
11-01-2006 07:07 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: Detecting Window Resize
quote:
Originally posted by SpunkyLoveMuff
code:
try{
var MessengerAPI = new ActiveXObject("Messenger.UIAutomation.1");
} catch(exception){
Debug.Trace("Error occured creating the messenger API object, make sure you have windows messenger installed");
}
        var MessengerWnd = MessengerAPI.IMessengerWindow;
        MessengerWnd = MessengerAPI.Window;

Thats how I'm calling it... Doesn't seem to do any harm :p

It also isn't the complete Messenger API but only a very small part of it.
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-02-2006 01:33 AM
Profile PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] 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