Conversation window - 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: Conversation window (/showthread.php?tid=65185) Conversation window by tomjbyrne on 08-21-2006 at 08:56 AM Is there any way I can get the conversation window to automatically open on my desktop (when text is received from someone on my contact list) instead of the object flashing on the task bar RE: Conversation window by KnRd_WC on 08-21-2006 at 10:36 AM
Hi tomjbyrne ! code: RE: Conversation window by tomjbyrne on 08-21-2006 at 10:46 AM Thanks for the reply, Appologies, am very new to this, where would this code be entered RE: Conversation window by KnRd_WC on 08-21-2006 at 10:52 AM
Just for you ! lol RE: Conversation window by tomjbyrne on 08-21-2006 at 01:16 PM
A lot to learn I guess..... Any idea why it would work on one PC and not another... all windows closed minimized on my laptop and when a msg is received the window pops up, yet on a desktop it does not. RE: Conversation window by KnRd_WC on 08-21-2006 at 01:34 PM
That's really strange, I've got the same problem. My script works fine on my computer... and with my father's computer, it do not.... code: Now, this script should work fine ! >>> Download AutoForeground ! (IMPORTANT : Maybe you will have to delete you internet cache, I've got a problem to download the new version with Firefox until I delete my internet cache ) --------------------------- Do you think it will be useful for you if I insert commands ?? For exemple : /afon (AutoForeground On) /afoff (AutoForeground Off) RE: Conversation window by tomjbyrne on 08-21-2006 at 02:44 PM
I owe you one new code works fine, thanks a bunch for your help. RE: Conversation window by KnRd_WC on 08-21-2006 at 03:00 PM
Thanks, there's no problem RE: Conversation window by RaceProUK on 08-21-2006 at 03:43 PM Have you submitted this to the Scripts DB? I think you should RE: Conversation window by KnRd_WC on 08-21-2006 at 04:09 PM
Wow, really ? RE: Conversation window by Jiggs on 08-23-2006 at 12:03 PM
cool. i like it. any chance you could add the on and odd option to the plus! menu? "Turn AF ON" when off and "Turn AF OFF" when on RE: Conversation window by matty on 08-23-2006 at 12:06 PM
quote: code:The BringWindowToTop function brings the specified window to the top of the Z order. If the window is a top-level window, it is activated. If the window is a child window, the top-level parent window associated with the child window is activated. RE: Conversation window by KnRd_WC on 08-23-2006 at 02:08 PM
Thanks, good ideas quote:This function is the same as 'Interop.Call("User32.dll","SetForegroundWindow",hWnd)' and they ONLY works when the window is not minimized !! xD quote:But, thanks quote:Sorry, but I don't really understand (Hey, I'm French !!! xD) RE: Conversation window by artfuldodga on 08-23-2006 at 02:20 PM
I like this script, checking it out .. wondering how it works with multiple chats.. RE: Conversation window by KnRd_WC on 08-23-2006 at 03:06 PM
Wow yeah !! That's very distubing !! I added a function which check if you have an "active" chat window. I hope that was your request... (Because it's very hard to understand...) RE: Conversation window by artfuldodga on 08-23-2006 at 03:47 PM
I can't try it out at the moment... but heres what I meant: RE: Conversation window by KnRd_WC on 08-23-2006 at 04:07 PM
If I understood well your message, that's fixed ! code: After : code: I hope that it is what you want.... I use Tabs too, and I think the Tabs are located in a window attached to the top of chat windows, so, there's no problem with the Tabs.... Now ! (I tested my script with tabs, there's no problem, I think...) The link, one more time... xD >> AutoForeground 1.1 RE: Conversation window by artfuldodga on 08-23-2006 at 05:29 PM
OK, script works nicely now when you have the Window Open and talking to Multiple Contacts it doesn't switch back & forth between who has Messaged you Last, which is good. RE: Conversation window by KnRd_WC on 08-23-2006 at 05:47 PM
I think that I understood code:Unsuccessfully, because I can't catch the VK_LBUTTON (1) event..... 3) Right now, I've got to work on my website But, I'm still looking for a solution, I will contact you again if I found a solution RE: Conversation window by artfuldodga on 08-24-2006 at 12:39 PM thanks, looking forward to seeing what you can come up with. RE: Conversation window by CookieRevised on 08-24-2006 at 05:41 PM
Maybe I completely misunderstood the requests and suggestions and all (and I also didn't looked/tested at the scripts), but you can simply restore a window without bringing it to the foreground. This means that a chat window will be restored: if it is the only window, it will be the first foreground window, if it is not the only chat window it will be restored behind the currently active one.... search the windows api's for this (I don't know them by heart, but I know you can simply do this with one)... RE: Conversation window by artfuldodga on 08-24-2006 at 05:46 PM
I don't mind the Convo Window coming to the Foreground .. but, I would rather it come to the Foreground, Only if the person I minimized the Window on.... or left Focus of... Messages me back, rather than it switching to the very next person that Messages all the time one after the other.. it makes the window pop up way to often! & kind of becomes more of an annoyance. RE: RE: Conversation window by KnRd_WC on 08-24-2006 at 11:17 PM
Do you remember when I said that : quote: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 RE: Conversation window by artfuldodga on 08-25-2006 at 12:15 AM
Seems to work Nicely I was just testing it out... it did what I suggested it do, which was Only Popup if you Minimize the window with a Contact who is Actively talking to you. I opened a tab to a Contact that was not talking to me, and Minimized the Window using them and the previous Contact would Message me & the Window would Flash in the tray. Good Job RE: Conversation window by KnRd_WC on 08-25-2006 at 12:26 AM
Thanks RE: RE: RE: Conversation window by CookieRevised on 08-25-2006 at 12:29 AM
quote:that hidden window is owner of the chat windows. See script in CookieRevised's reply to Tabbed Chats - wrong contact aka: Instead of using the FindWindow API, which will most likely return the wrong window when using polygamy!, retrieve the owner window of the tabbed chat windows to get to the (correct) "MessengerPlusLive_TabbedChats"-class window. --- quote:you're not using the right api (or apis) then, If you read my post carefully I say that if chats already exist and you are busy in one, the one being restored will be put behind the active one (active one being the one you'er busy in) in the z-order. If you're not busy in a convo, the one being restored will become the top chat window. RE: Conversation window by KnRd_WC on 08-25-2006 at 12:50 AM
Thanks for the advice code: RE: Conversation window by artfuldodga on 08-25-2006 at 12:51 AM
Translation for Menu Item & Suggested Menu Layout RE: Conversation window by KnRd_WC on 08-25-2006 at 01:29 AM
Thanks RE: Conversation window by artfuldodga on 08-25-2006 at 02:04 AM
AutoForeground > AF: On / Off RE: Conversation window by KnRd_WC on 08-25-2006 at 02:30 AM
Ok, that's good idea, I'm going to start now, but I will finish tomorrow RE: Conversation window by RaceProUK on 08-25-2006 at 10:04 AM
quote:IIRC, in C++, you provide both SW_RESTORE and SW_NOACTIVATE bitwise-or'd to ShowWindow(). That restores the window, but doesn't activate it, therefore it won't move focus out of the active window. Edit: I was close. According to MSDN, it's actually SW_SHOWNOACTIVATE. * RaceProUK checks the value... It's 4 quote: RE: Conversation window by KnRd_WC on 08-25-2006 at 10:41 AM
Thanks RaceProUK, but in fact, I already tried this function yesterday with a script : code:But this function doesn't worked.... So, I tried this function with an external program,"PureBasic" (), I get the handle, And I tried again : code:Nothing..... And I tried with Windows Media Player window.... It worked... I tried too to include the "program filter", I made an external DLL, which compare the process PID in the list and the active window process PID, easy.... but It don't work either (in fact, it works, but sometimes, and "sometimes" is not a good word in programmation...) I think that my script is going to stop there.................... Thanks guys, I'm going to submit my script to the script DB, thanks again ----------------- I'm going to make an 'about window' ans submit this script, because a messagebox isn't really beautiful.... xD ----------------- Done ! >> AutoForeground (Sorry but I removed the 'Thanks' because the 'about window' was very very big xD. RE: Conversation window by artfuldodga on 08-25-2006 at 01:04 PM
Nice Job. Hopefully someone can maybe help you with improvments! Bug: I have the Tab Option enabled for the Script and when a Contact Messages you with the Window Restored & Active... if you are Browsing Quick Icons using WLM's Icon Button (Can Enable that under Quick Icons)... and that Contact Messages you, AutoForeground trys to bring the Window to the Front Resulting in a Crash of WLM. RE: Conversation window by KnRd_WC on 08-25-2006 at 08:51 PM
Mhhhh strange, no crash for me... I'm going to work on these windows (MP!L quick icons...). Thanks for the info I will work on this script later, I'm on an other project right now (look at my signature ). RE: Conversation window by artfuldodga on 08-25-2006 at 09:08 PM btw, it was Quick Icons displaying (Custom Emoticons) oh.. and i had to press & hold the Quick Icons Scroll bar while someone was typing to me in order to make it crash. RE: Conversation window by KnRd_WC on 08-25-2006 at 09:11 PM
BUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUG !!!!!!!!!!!! RE: Conversation window by KnRd_WC on 08-25-2006 at 09:30 PM
Sorry for double post but.... 'bump' !!!! RE: Conversation window by artfuldodga on 08-25-2006 at 10:34 PM Seems Fixed RE: RE: Conversation window by CookieRevised on 08-25-2006 at 10:52 PM
[OFF TOPIC] quote:See RaceProUK's post and especially the link to the msdn library. RE: Conversation window by KnRd_WC on 08-25-2006 at 10:57 PM
No, don't worry, I'm not going to make a new thread |