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:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: [Request] Changing Toast Location
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.
}


This post was edited on 07-09-2008 at 04:55 PM by SmokingCookie.
07-09-2008 04:48 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