Open the Chat Window automatically when i recieve a message - Printable Version
-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Open the Chat Window automatically when i recieve a message (/showthread.php?tid=95113)
Open the Chat Window automatically when i recieve a message by Ghostleader42 on 07-25-2010 at 10:51 AM
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-
RE: Open the Chat Window automatically when i recieve a message by matty on 07-26-2010 at 05:48 PM
Is your second monitor on the right or on the left? And what are the resolutions of both monitors?
RE: Open the Chat Window automatically when i recieve a message by Ghostleader42 on 07-27-2010 at 11:00 AM
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);
}
RE: Open the Chat Window automatically when i recieve a message by CookieRevised on 07-27-2010 at 11:24 AM
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...
RE: Open the Chat Window automatically when i recieve a message by matty on 07-27-2010 at 01:32 PM
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.
RE: Open the Chat Window automatically when i recieve a message by Ghostleader42 on 07-28-2010 at 09:27 AM
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
|