What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] "WindowState" API

[?] "WindowState" API
Author: Message:
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. [?] "WindowState" API
is there like an API function that returns a window's state?

ie. 1 - Normal
2 - Maximized
3 - Minimized
[quote]
Ultimatess6
: What a noob mod
10-06-2007 02:20 AM
Profile PM Web Find Quote Report
phalanxii
Full Member
***


Posts: 146
Reputation: 5
32 / Male / Flag
Joined: Aug 2006
Status: Away
RE: [?] "WindowState" API
GetWindowPlacement

Create a DataBloc object (Interop.Allocate) for the WINDOWPLACEMENT structure.
code:
var WINDOWPLACEMENT = Interop.Allocate(44);
WINDOWPLACEMENT.WriteDWORD(0, WINDOWPLACEMENT.Size);
var Result = Interop.Call("User32", "GetWindowPlacement", Messenger.ContactListWndHandle, WINDOWPLACEMENT.DataPtr);
if(Result) Debug.Trace(WINDOWPLACEMENT.ReadDWORD(8));

This post was edited on 10-06-2007 at 02:51 AM by phalanxii.
10-06-2007 02:28 AM
Profile PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. RE: [?] "WindowState" API
works perfectly (Y):)
[quote]
Ultimatess6
: What a noob mod
10-06-2007 03:05 AM
Profile PM Web Find Quote Report
« 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