What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Open the Chat Window automatically when i recieve a message

Open the Chat Window automatically when i recieve a message
Author: Message:
Ghostleader42
New Member
*


Posts: 3
Joined: Jul 2010
O.P. Open the Chat Window automatically when i recieve a message
HI all,

im using 2 Monitors, but the windows never pop-up, they are only blinking in the task-bar.
So if im working in Fullscreen-Mode i cant see if anyone is talking to me !
I tried the AutoForeground Script already, but thats not working for me, because i dont want that chat window to be the foreground-window, it should be shown only on my second screen !

I hope someone can code a simple script wich is just doing that task

function (OnEvent_ChatWndReceiveMessage){
Interop.Call("User32.dll","ShowWindow");
}

i think its something like that, but i dont have any coding knowledge ;)
I hope you guys understand my problem, and thanks for your help

MFG Ghostleader42 - speaking german also-
07-25-2010 10:51 AM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Open the Chat Window automatically when i recieve a message
Is your second monitor on the right or on the left? And what are the resolutions of both monitors?

This post was edited on 07-26-2010 at 05:49 PM by matty.
07-26-2010 05:48 PM
Profile E-Mail PM Find Quote Report
Ghostleader42
New Member
*


Posts: 3
Joined: Jul 2010
O.P. RE: Open the Chat Window automatically when i recieve a message
Hi matty,

resolution on both is 1280x1024, second monitor on the right side.

I could fix the problem with that little script:
(took me about 7 hrs)

code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind)
{
   
        Windows = Messenger.CurrentChats
        SetForeground(ChatWnd.Handle);
   
    return Message;
}

function SetForeground(Wnd) {
        Interop.Call("User32.dll","ShowWindow",Wnd,4);
        }

           
07-27-2010 11:00 AM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Open the Chat Window automatically when i recieve a message
Ghostleader42,

Be carefull with that snippet though.
That snippet will cause your chat windows to pop up each time someone sends you a message, thus also when:
- You're running another application and the chat window is behind that application you're working in.
- When you are busy typing in another conversation, the chat window where a new message is posted will pop in front.
- etc...

All these scenarios will be even more annoying than when you don't use such a script.

If I understand your problem correctly then the question should be: how come the windows do not pop up properly? Because the behaviour you're experiencing is not normal, and it is _that_ which should be fixed. Because the thing you ask for now is nothing more than a quick patch for an error comming from somewhere else, so that you 'simulate' proper behaviour, thus it is not a true solution. A true solution is finding the cause of this behaviour and fixing that.

It could well be that you are running some software which does some fancy/tricky things. A lot of monitor/lcd software is know to cause such issues and in many cases you actually do not need such software at all (eventhough it is automatically installed or so called 'recommended'). So you might wanna check that out first...

This post was edited on 07-27-2010 at 11:28 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
07-27-2010 11:24 AM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Open the Chat Window automatically when i recieve a message
Here is what I was thinking. If your windows currently open on your left monitor when a window is created I can move it to the right monitor. I will see if there is a way of having it only do this if you are running a full screen application.
07-27-2010 01:32 PM
Profile E-Mail PM Find Quote Report
Ghostleader42
New Member
*


Posts: 3
Joined: Jul 2010
O.P. RE: Open the Chat Window automatically when i recieve a message
I think i have to say that again:

When i recieve a message the chat window is not popping up, its flashing orange in the taskbar. It appears correctly when i click on the icon.
When i had my old Win XP system that was no problem because the chat windows appeared automatically on their recent position (mainly my second monitor)
Now i want that old behavior on my win 7 because i dont want to check my taskbar for chat windows all the time...
.... and i even cant see the taskbar while working with a fullscreen app on 1 st monitor.

The script lets the window pop up on their recent position, but the cursor wont be caught by it, because the window is still non active

@CookieRevised:
Youre right, if im using my second monitor for something else (what i usually dont do ^^), browsing for example the window is popping up in front of it, but if i minimize it it wont pop up again, which i cant explain ^^, it will appear behind the browser next time.

Best regards
Ghostleader42
07-28-2010 09:27 AM
Profile E-Mail PM 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