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

Background Window
Author: Message:
hadesz
New Member
*


Posts: 10
Joined: Nov 2007
O.P. Background Window
Hi All!

is there any event or properti, which can tell if a chat window is in the background or active?
11-05-2007 08:32 PM
Profile E-Mail PM Find Quote Report
Quantum
Disabled Account
*****

Away.

Posts: 1055
Reputation: -17
31 / Male / Flag
Joined: Feb 2007
RE: Background Window
No not really but convo notifier and convo close sometimes work like that. Heres the links:

http://www.msgpluslive.net/scripts/view/115-Convo-Notifier/
http://shoutbox.menthix.net/showthread.php?tid=64418&page=1

I like the second one.

Features:

    * Displays a toast message when someone starts a conversation with you.
    * Displays a toast message when someone adds you to his/her contact list.
    * Displays a toast message when someone removes you from his/her contact list.
    * When you already have a conversation window opened with the remote user, you won't get a toast message.
    * When you click the toast, a conversation window with the remote user will be opened. POSTED FROM THE THREAD
No longer here.
11-05-2007 09:16 PM
Profile PM Find Quote Report
vikke
Senior Member
****

Avatar

Posts: 900
Reputation: 28
31 / Male / Flag
Joined: May 2006
RE: Background Window
You can check: (code not tested)
code:
if(ChatWnd.Handle == GetForegroundWindow())
{
  // Window is on top.
}

function GetForegroundWindow()
{
  return Interop.Call("user32.dll", "GetForegroundWindow");
}

11-05-2007 09:23 PM
Profile E-Mail PM Find Quote Report
hadesz
New Member
*


Posts: 10
Joined: Nov 2007
O.P. RE: Background Window
Working thanks
11-05-2007 09:51 PM
Profile E-Mail PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Background Window
While it may work, it's not ideal. Checking the window state for a value may be more reliable.

My MSDN learning fails me right now...
[Image: spartaafk.png]
11-06-2007 12:25 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