MSGBOX position in WSH/VBS
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 pos开发者_如何转开发ition a inputbox, but not a msgbox.
Thanks for help.
Greetings, matthias
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.
This is possible. Here is a link to a code sample (VB5, so it should work for you):
http://support.microsoft.com/kb/180936
Basically, you set up a hook so that your application gets a notification whenever you pop up a message box. Inside the handler, you move the message box to the desired location on the screen.
精彩评论