MSGBOX position in WSH/VBS

Sebastian picture Sebastian · Jun 7, 2010 · Viewed 8.7k times · Source

here is my next question and i hope some one can help me :-)

Is it possible to position a msgbox in wsh/vbs?

alt text http://www.4freeimagehost.com/uploads/a9b04cde0527.jpg

I need the msgbox everytime in the foreground. I know that how to position a inputbox, but not a msgbox.

Thanks for help.

Greetings, matthias

Answer

Alex K. picture Alex K. · Jun 7, 2010

You cannot do that with a WSH MsgBox using VBS alone.

InputBox is the only build in dialog function that allows you to set a position.

You can use a WshShell.Popup and make it disappear after a few seconds, however it will be centered.

Edit; here is something using IE.