What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [request] Auto-maximize?

[request] Auto-maximize?
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [request] Auto-maximize?
code:
var WindowPlacement = Interop.Allocate(48);
var RECT = Interop.Allocate(16);
var SW_MAXIMIZE = 0x3;

function _setPlacement(hWnd){
    if (hWnd > 0){
        Interop.Call('user32', 'GetWindowRect', hWnd, RECT);
        with (WindowPlacement){
            .WriteDWORD(8, SW_MAXIMIZE)
            .WriteDWORD(36, RECT.ReadDWORD(0));
            .WriteDWORD(40, RECT.ReadDWORD(4));
            .WriteDWORD(44, RECT.ReadDWORD(8));
            .WriteDWORD(48, RECT.ReadDWORD(12));
        }
        Interop.Call('user32', 'SetWindowPlacement', hWnd, WindowPlacement);
    }
}

function OnEvent_ChatWndCreated(objChatWnd){
    _setPlacement(objChatWnd);
}

function OnEvent_ContactListWndCreated(objWnd){
    _setPlacement(objWnd);
}

This post was edited on 12-04-2006 at 05:05 AM by matty.
12-04-2006 04:32 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[request] Auto-maximize? - by Rolando on 12-04-2006 at 03:45 AM
RE: [request] Auto-maximize? - by markee on 12-04-2006 at 03:50 AM
RE: RE: [request] Auto-maximize? - by Rolando on 12-04-2006 at 03:56 AM
RE: [request] Auto-maximize? - by CookieRevised on 12-04-2006 at 03:59 AM
RE: [request] Auto-maximize? - by Rolando on 12-04-2006 at 04:20 AM
RE: [request] Auto-maximize? - by matty on 12-04-2006 at 04:32 AM
RE: [request] Auto-maximize? - by markee on 12-04-2006 at 04:34 AM
RE: [request] Auto-maximize? - by Rolando on 12-04-2006 at 05:01 AM
RE: [request] Auto-maximize? - by CookieRevised on 12-05-2006 at 02:09 AM
RE: [request] Auto-maximize? - by bobby on 02-04-2008 at 10:13 PM
RE: [request] Auto-maximize? - by chompas on 02-05-2008 at 03:26 PM


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