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:
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
O.P. [request] window focus
I'd probably try making this myself if i had any idea on how to use the Windows API
What I'm looking for is a script for me to use when in a full screen app that will focus a chat window to the correct tab when a message is received (and/or open it if it is minimized), but not switch out of the full screen. Not sure if its possible or not, but who knows.

Reason for this, is that I have a second screen that usually holds chat windows on it. I have StuffPlug to flash the capslock key, but it doesn't show whats a person says when sending a message.

anyone up for the challenge?
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
09-25-2008 01:58 AM
Profile PM Web Find Quote Report
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
O.P. RE: [request] window focus
bumpage
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
09-28-2008 02:40 AM
Profile PM Web Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: [request] window focus
I'm not sure if JScript/MPL scripting is capable of doing this..

You might as well use DirectX to make windows "blend" into your 3D app (Got absolutely no idea how to do though)
10-12-2008 11:14 AM
Profile PM Find Quote Report
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 »


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