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

Silent Messages
Author: Message:
bigbob85
Full Member
***

Avatar
Is Good, Is Bob...

Posts: 128
Reputation: 4
37 / Male / Flag
Joined: Jul 2003
O.P. RE: Silent Messages
Felu told me to change it to true,  and it works. But I'll use 0, it seems more... correct :P

But isnt there a way to get the current window handle, send message,  then bring the original to the front?

code:
var CurWindow = Interop.Allocate(32);
Interop.Call('User32', 'GetTopWindow', CurWindow);
// Send Message
Interop.Call("User32", "BringWindowToTop", CurWindow);

And

code:
//var CurWindow = Interop.Allocate(32);
var CurWindow;
Interop.Call('User32', 'GetTopWindow', CurWindow);
//Debug.Trace(CurWindow);
//Debug.Trace(CurWindow.Handle);

Contact.SendMessage("/np");
Interop.Call('User32','ShowWindow', CurWindow, SW_SHOW);

Not sure if I'm ment to read this differently, or define CurWindow differently...

SW_SHOW is definded aswell. (its 5)


code:
var CurWindow = Interop.Allocate((255 *2) +2);
Interop.Call('User32', 'GetTopWindow', CurWindow);
ChatWnd.SendMessage("/np");
Interop.Call('User32','ShowWindow', CurWindow.ReadString(0), SW_SHOW);
Shouldnt this one work?

This post was edited on 01-16-2007 at 10:26 AM by bigbob85.
01-16-2007 10:01 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Silent Messages - by bigbob85 on 01-15-2007 at 10:06 AM
RE: Silent Messages - by Felu on 01-15-2007 at 10:48 AM
RE: Silent Messages - by bigbob85 on 01-15-2007 at 11:11 AM
RE: Silent Messages - by Plik on 01-15-2007 at 11:19 AM
RE: Silent Messages - by bigbob85 on 01-16-2007 at 10:01 AM
RE: Silent Messages - by Felu on 01-16-2007 at 02:09 PM
RE: Silent Messages - by MrT on 01-17-2007 at 04:26 PM
RE: Silent Messages - by Eljay on 01-17-2007 at 04:29 PM
RE: RE: Silent Messages - by markee on 01-18-2007 at 12:26 AM
RE: RE: RE: Silent Messages - by CookieRevised on 01-18-2007 at 03:53 AM
RE: Silent Messages - by bigbob85 on 01-19-2007 at 12:31 AM
RE: RE: Silent Messages - by CookieRevised on 01-19-2007 at 02:07 PM
RE: Silent Messages - by bigbob85 on 01-19-2007 at 11:12 PM
RE: Silent Messages - by CookieRevised on 01-20-2007 at 03:20 AM
RE: Silent Messages - by bigbob85 on 01-20-2007 at 08:44 AM


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