Posts: 6073 Reputation: 57
39 / /
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.
Posts: 3658 Reputation: 61
36 / /
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
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.
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
It also isn't the complete Messenger API but only a very small part of it.