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

Pages: (2): « First « 1 [ 2 ] Last »
xml window position
Author: Message:
scutterman
Junior Member
**

Avatar
-- Scutterman avatar from Runescape

Posts: 21
– / Male / Flag
Joined: Jul 2007
O.P. RE: xml window position
Thanks, the MoveWindow is returning a value of 1 now and the ShowWindow is returning a value of 0. The window isn't showing up but I'm sure it's just a bug in my code

code:
    var Result2 = Interop.Call("user32.dll",     "ShowWindow", WndHandle, "SW_SHOW");
    var Result3 = Interop.Call("user32.dll", "UpdateWindow", WndHandle);



~~Scutterman~~

Of course the world doesn't make sense
Its only purpose is to be somewhere that
humans can stand around in complaining
that the world doesn't make sense


08-30-2007 06:39 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: xml window position
quote:
Originally posted by scutterman
code:
    var Result2 = Interop.Call("user32.dll",     "ShowWindow", WndHandle, "SW_SHOW");

~~Scutterman~~

SW_SHOW is not a string value it is an integer. Easiest way to find out what the values are is to google the following

define SW_SHOW

SW_SHOW's value is 5.
08-30-2007 07:01 PM
Profile E-Mail PM Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: xml window position
quote:
Originally posted by matty
quote:
Originally posted by scutterman
code:
    var Result2 = Interop.Call("user32.dll",     "ShowWindow", WndHandle, "SW_SHOW");

~~Scutterman~~

SW_SHOW is not a string value it is an integer. Easiest way to find out what the values are is to google the following

define SW_SHOW

SW_SHOW's value is 5.
Why use a DLL at all when Patchou has supplies us with a read/write property to do it?
code:
PlusWndObject.Visible = true;
And then magically it ill appear.  Make sure you change PlusWndObject to what the object actually is ;)
[Image: markee.png]
08-31-2007 12:15 AM
Profile PM Find Quote Report
scutterman
Junior Member
**

Avatar
-- Scutterman avatar from Runescape

Posts: 21
– / Male / Flag
Joined: Jul 2007
O.P. RE: xml window position
Thanks to everyone, the window is displaying fine now

~~Scutterman~~

Of course the world doesn't make sense
Its only purpose is to be somewhere that
humans can stand around in complaining
that the world doesn't make sense


09-02-2007 01:38 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« 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