What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Changing Toast Location

[Request] Changing Toast Location
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: [Request] Changing Toast Location
quote:
Originally posted by SmokingCookie
Can toasts be located by GetForegroundWindow()?

If so, one can get the toast's handle and useMoveWindow() to move it to the desired position. Such a code would be:

code:
var Toast = new Object();

function getToastHandle() {
      return Interop.Call("User32.dll","GetForegroundWindow"); // retrieves toast handle
}

function setToastPosition() {
      Interop.Call("User32.dll","MoveWindow",getToastHandle(),0,0,Width,Height,false); // Top-left corner, I don't know the width and height of toast windows. Can be figured out using MsPaint.
}



You would have to edit the animation too, which is not quite so easy :p
<Eljay> "Problems encountered: shit blew up" :zippy:
07-09-2008 06:35 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] Changing Toast Location - by FootSoulJah on 07-08-2008 at 02:34 AM
RE: [Request] Changing Toast Location - by SmokingCookie on 07-08-2008 at 07:44 PM
RE: [Request] Changing Toast Location - by matty on 07-09-2008 at 01:48 PM
RE: [Request] Changing Toast Location - by SmokingCookie on 07-09-2008 at 03:40 PM
RE: [Request] Changing Toast Location - by Spunky on 07-09-2008 at 04:39 PM
RE: [Request] Changing Toast Location - by SmokingCookie on 07-09-2008 at 04:48 PM
RE: [Request] Changing Toast Location - by Spunky on 07-09-2008 at 06:35 PM
RE: [Request] Changing Toast Location - by SmokingCookie on 07-09-2008 at 06:37 PM


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