What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Set window size

Set window size
Author: Message:
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: RE: Set window size
quote:
Originally posted by Neon_
All I'm trying to do is make a simple command that will resize my chat window to a specific size. Anyone think they can help me finish it? I'm kind of lost at the errors I'm getting. This is what I have so far:

code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{
    if (Message=="/sfix"){
        SetWindowPos(ChatWnd.Handle, HWND_TOP, 0, 0, 700, 500, SWP_NOMOVE | SWP_NOZORDER);
    return"";
    }
}


it works fine here :)

code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{
    if (Message=="/sfix"){
Interop.Call("user32", "SetWindowPos", ChatWnd.Handle, 0, 0, 0, 700, 500, 2);


//SetWindowPos(ChatWnd.Handle, HWND_TOP, 0, 0, 700, 500, SWP_NOMOVE | SWP_NOZORDER);
    return"";
    }
}
10-19-2007 08:53 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Set window size - by Neon_ on 10-18-2007 at 10:01 PM
RE: Set window size - by deAd on 10-18-2007 at 10:03 PM
RE: Set window size - by Neon_ on 10-19-2007 at 02:07 AM
RE: Set window size - by Spunky on 10-19-2007 at 09:34 AM
RE: Set window size - by Neon_ on 10-19-2007 at 08:45 PM
RE: RE: Set window size - by felipEx on 10-19-2007 at 08:53 PM
RE: Set window size - by Neon_ on 10-19-2007 at 11:08 PM
RE: Set window size - by Spunky on 10-20-2007 at 05:43 PM
RE: Set window size - by Matti on 10-21-2007 at 03:02 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