Shoutbox

Hide Chat Windows - 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: Hide Chat Windows (/showthread.php?tid=82535)

Hide Chat Windows by Suxsem on 03-21-2008 at 10:33 PM

hi!
How can I hide a conversation and then open it without losing messages?
Thank!


RE: Hide Chat Windows by Chris4 on 03-21-2008 at 10:45 PM

You can do that with the Messenger Lock feature. You don't need a script to do that.

Simply go to Plus! > Preferences > Messenger > Messenger Lock

Click here for screenshot

There you can change the settings, etc.

By default, you just press CTRL+Space on your keyboard to lock Messenger, which will hide everything and change the icon in the systray (bottom-right). Then double-click the icon to restore.


RE: Hide Chat Windows by Suxsem on 03-21-2008 at 10:49 PM

thank! but i need this function for a big script... :)


RE: Hide Chat Windows by Suxsem on 03-21-2008 at 10:56 PM

i see in a website this function:
var finDaNasc = Messenger.CurrentChats
Interop.Call('user32', 'ShowWindow', finDaNasc.Handle, "SW_HIDE")
BUT this function DON'T work!
where is the error?
thank!


RE: Hide Chat Windows by matty on 03-21-2008 at 11:57 PM

quote:
Originally posted by Suxsem
i see in a website this function:
var finDaNasc = Messenger.CurrentChats
Interop.Call('user32', 'ShowWindow', finDaNasc.Handle, "SW_HIDE")
BUT this function DON'T work!
where is the error?
thank!
SW_HIDE wouldn't be a string.

And the code you saw is wrong. It would be
code:
for ( var oChat = new Enumerator(Messenger.CurrentChats); !oChat.atEnd(); oChat.moveNext()) {
    Interop.Call('user32', 'ShowWindow', oChat.item().Handle, 0 /* SW_HIDE */)
}

RE: Hide Chat Windows by Suxsem on 03-22-2008 at 12:01 AM

very thank! bye