What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Automatically open a minimized chat window when someone signs in

[Request] Automatically open a minimized chat window when someone signs in
Author: Message:
timothyholt506
Junior Member
**


Posts: 17
Joined: Jan 2007
O.P. [Request] Automatically open a minimized chat window when someone signs in
Is it possible to automatically open a minimized chat window every time someone signs in?
07-10-2008 04:33 PM
Profile E-Mail PM Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
29 / Male / Flag
Joined: Jul 2007
RE: [Request] Automatically open a minimized chat window when someone signs in
You mean like opening a chat window as soon as somebody signs in?
07-10-2008 05:11 PM
Profile PM Find Quote Report
timothyholt506
Junior Member
**


Posts: 17
Joined: Jan 2007
O.P. RE: [Request] Automatically open a minimized chat window when someone signs in
Yes.
07-10-2008 06:34 PM
Profile E-Mail PM Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
29 / Male / Flag
Joined: Jul 2007
RE: [Request] Automatically open a minimized chat window when someone signs in
That's quite simple:

code:
function OnEvent_ContactSignIn(cEmail) {
      Messenger.OpenChat(cEmail);
}

07-10-2008 06:39 PM
Profile PM Find Quote Report
timothyholt506
Junior Member
**


Posts: 17
Joined: Jan 2007
O.P. RE: [Request] Automatically open a minimized chat window when someone signs in
That opens them in the foreground. How do I make it so it opens them minimized?
07-11-2008 10:02 AM
Profile E-Mail PM Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
29 / Male / Flag
Joined: Jul 2007
RE: [Request] Automatically open a minimized chat window when someone signs in
I'm not sure if this works, but I think it should:

code:
var SC_MINIMIZE = 0xF020

function OnEvent_ContactSignin(cEmail) {
      pChatWnd = Messenger.OpenChat(cEmail);
      k = Interop.Call("User32.dll","SendMessageW",SC_MIIMIZE,pChatWnd.Handle);
      if(k == 0) {
            Debug.Trace(Interop.GetLastError());
      }
}

07-11-2008 12:59 PM
Profile PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
RE: [Request] Automatically open a minimized chat window when someone signs in
:P
code:
function OnEvent_ContactSignin(Email){
Interop.Call("user32","CloseWindow",Messenger.OpenChat(Email).handle);
}

tested and works

btw SmokingCookie your code doesn't work. (bad calling convention);shortened code thanks to matty's post  lol =p

This post was edited on 07-12-2008 at 04:39 PM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
07-11-2008 04:00 PM
Profile PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Request] Automatically open a minimized chat window when someone signs in
These can all be shorted by doing

code:
function OnEvent_ContactSignin (sEmail) {
    Interop.Call( 'user32', 'ShowWindow', Messenger.OpenChat( sEmail ).Handle, 6 /* SW_MINIMIZE */ );
}
07-12-2008 03:22 PM
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