What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [request] window focus

[request] window focus
Author: Message:
tribbium
Junior Member
**


Posts: 34
Reputation: 3
– / Male / Flag
Joined: Jul 2008
RE: [request] window focus
Wow, I'm drudging up quite the old thread. But I think I've got a solution (hack) to your problem and I wanted to share =D

code:
function OnEvent_ChatWndReceiveMessage (ChatWnd, Origin, Message, MsgKind){
    if (Origin != Messenger.MyName){
        Interop.Call ("user32", "SetForegroundWindow", ChatWnd.Handle);
    }
}

I've tested it while watching a movie in fullscreen but not with Team Fortress 2 yet =P. The code is pretty straight forward, receive message set focus to that window. Tabs are actually windows of themselves to it'll switch to that tab. Based on experimental data, it will not overlap your fullscreen window.

Problems:

I don't know that it could detect that you are in fullscreen mode. You can probably implement an on/off button.

Receiving more than one message while in fullscreen mode will result in it flipping to the latest received message without identifying the other ones. There's probably a workaround you could write with a queue or something.

This post was edited on 08-02-2009 at 02:23 AM by tribbium.
Are you and your friends trivia enthusiasts? Download Tribbium! http://www.msgpluslive.net/scripts/view/427-Tribb...ia-Gaming-System)/

Download questions for Tribbium here:
http://www.tribbium.tk
08-02-2009 02:22 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[request] window focus - by MeEtc on 09-25-2008 at 01:58 AM
RE: [request] window focus - by MeEtc on 09-28-2008 at 02:40 AM
RE: [request] window focus - by SmokingCookie on 10-12-2008 at 11:14 AM
RE: [request] window focus - by tribbium on 08-02-2009 at 02:22 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