What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » How to "OnWindowsFocus" Event

How to "OnWindowsFocus" Event
Author: Message:
jackdamuck
New Member
*


Posts: 3
Joined: May 2010
O.P. How to "OnWindowsFocus" Event
Hello everyone!

I got a quick question. Is there a way to create some event when a chatwindow comes to focus?
My idea is to change the keyboard layout depending on which person I'm chatting with. For example:

1 Group of Greeks
1 Group of Englishs

So if I bring a chatwindow with a Greek person to the focus, it should change to the greek keyboard layout, for the English to the English keyboard layout, etc.

Any ideas how to create such an event? Or how to use some existing stuff to realise the idea?

Thank you very much in advance!
Regards

05-21-2010 01:10 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: How to "OnWindowsFocus" Event
Enhancer does this if I am not mistaken. The only real way is to create an external library to subclass the Chat Windows.
05-22-2010 01:23 PM
Profile E-Mail PM Find Quote Report
jackdamuck
New Member
*


Posts: 3
Joined: May 2010
O.P. RE: How to "OnWindowsFocus" Event
Hmmm, I never did something like that before...any links/help available for that?
05-22-2010 11:08 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: How to "OnWindowsFocus" Event
Tutorial on How to Let a Script-Callable DLL Handle Scripting Objects
05-23-2010 11:25 PM
Profile E-Mail PM Find Quote Report
jackdamuck
New Member
*


Posts: 3
Joined: May 2010
O.P. RE: How to "OnWindowsFocus" Event
Hello again!

Thx 4 this tutorial. It gave me more of an insight view.

I solved my problem in a bit different way: by hooking all EVENT_SYSTEM_FOREGROUND events of the MSN process. My callback function sends some notification to a MsgPlus window, which I created in my script. With some function to get the handle of the window which created the event I can just iterate over all existing chatwindows and compare the handles and boom, that solves it.

If someone is interested in my solution, I can post the source of the DLL and my script.

Thanks for your help matty.

This post was edited on 05-24-2010 at 11:52 PM by jackdamuck.
05-24-2010 11:51 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: How to "OnWindowsFocus" Event
May be good to post it so others can learn as well :)
05-25-2010 11:31 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