MSGBOX position in WSH/VBS

被刻印的时光 ゝ 提交于 2019-12-24 10:46:29

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!