Shoutbox

[request] Auto-maximize? - 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)
+----- Thread: [request] Auto-maximize? (/showthread.php?tid=69130)

[request] Auto-maximize? by Rolando on 12-04-2006 at 03:45 AM

I tried searching for it but I didnt find any script that could do this.

Can anyone do one or knows where do find one?

Sorry if there is one and is posted somewhere in the forum, I tried to search for it but I had no result


RE: [request] Auto-maximize? by markee on 12-04-2006 at 03:50 AM

quote:
Originally posted by q25
I tried searching for it but I didnt find any script that could do this.

Can anyone do one or knows where do find one?

Sorry if there is one and is posted somewhere in the forum, I tried to search for it but I had no result

Were you looking for the script to auto-maximise the chat window, the contact list or both?
RE: RE: [request] Auto-maximize? by Rolando on 12-04-2006 at 03:56 AM

quote:
Originally posted by markee
quote:
Originally posted by q25
I tried searching for it but I didnt find any script that could do this.

Can anyone do one or knows where do find one?

Sorry if there is one and is posted somewhere in the forum, I tried to search for it but I had no result

Were you looking for the script to auto-maximise the chat window, the contact list or both?


both would be great.
RE: [request] Auto-maximize? by CookieRevised on 12-04-2006 at 03:59 AM

quote:
Originally posted by q25
both would be great.
and when?

Please be more specific in request like this... :p

Also, if you maximize the windows (contactlist and/or chat window), it will always be maximized whenever you start messenger again or open the contactlist from the systray icon or when you start another conversation. So currently I don't see any point in creating such a script at all.
RE: [request] Auto-maximize? by Rolando on 12-04-2006 at 04:20 AM

Always. I don't like the small windows and I'm always maximizing them.


RE: [request] Auto-maximize? by matty on 12-04-2006 at 04:32 AM

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);
}

RE: [request] Auto-maximize? by markee on 12-04-2006 at 04:34 AM

I have attached a script that will do this for you.  I hope you like it.

N.B. It will not automatically maximize your Chat Windows when installed but will do any others that are opened.

EDIT: @Matty - I just used the likes of Interop.Call("user32","ShowWindow",ChatWnd.Handle,3);

Would you mind explaining to me why/if your method is better?  I would just like to know for future reference as I'm just getting used to calling DLLs.


RE: [request] Auto-maximize? by Rolando on 12-04-2006 at 05:01 AM

Thanks a lot Matty and markee.

Btw, shouldn't  it say WindowPlacement in the first line? (Instead of WindowPlacment)

Anyways, thanks for the help :P I wont delete the thread in case someone else wants this script


RE: [request] Auto-maximize? by CookieRevised on 12-05-2006 at 02:09 AM

ermmm... I hope I'm not missing something, but:

quote:
Originally posted by CookieRevised
Also, if you maximize the windows (contactlist and/or chat window), it will always be maximized whenever you start messenger again or open the contactlist from the systray icon or when you start another conversation. So currently I don't see any point in creating such a script at all.

RE: [request] Auto-maximize? by bobby on 02-04-2008 at 10:13 PM

Not sure if this issue is covered anywhere else in the Forum. Whenever I have a group of chats minimized, and I minimize a window for some other program, the group chats remaximizes automatically. This has only started to occur after I installed Plus!

This issue occurs on both Windows Server 2003, Windows XP and Windows MCE 2005. Messenger version 8.1.0178.00.

If I have not made the issue clear, please ask for more information.


RE: [request] Auto-maximize? by chompas on 02-05-2008 at 03:26 PM

quote:
Originally posted by bobby
ase ask fo

I have the same problem. Also, when I focus another window most of the times the active chat window changes to another one, I can't find the reason but is annoying.