问题
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
回答1:
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.
回答2:
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.
来源:https://stackoverflow.com/questions/2990022/msgbox-position-in-wsh-vbs