开发者

MSGBOX position in WSH/VBS

开发者 https://www.devze.com 2023-01-03 02:12 出处:网络
here is my next question and i hope some one can help me :-) Is it possible to position a msgbox 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消