Do you remember when I said that :
quote:
Originally posted by KnRd_WC
But, I'm still looking for a solution, I will contact you again if I found a solution
And I found a "solution"...
In fact, when you use Tabbed Chats, there is only one window shown in the taskbar, the active chat window. And i tried to work with that, unsuccessfully...
And, while I was looking at the list of windows on my computer... I found that : "MessengerPlusLive_TabbedChats". This window has the name of the contact in the active window. So, just compare this window's name with the contact's name....
Here's the script modified (I'm going to include an option to activate or deactivate this feature) :
>> AutoForeground
I hope it works, if not, please, post a message with the bug's description.
>> I know, I use a "crappy" function to detect the window, because if 2 contacts have the same name (not very probable...) ... the window will be choose by chance xD. So, please, I'm only 17 years old, and I'm "new" to MP!L scripting, don't "boo" me, please....
@ CookieRevised : In fact, if you restore a window which is not minimized, nothing will happen...
("AutoForeground : Automatically set chat window on foreground when message is received")
But, thank you