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.
}