How to hide typed passwords in a vbscript message box
- 1 Comment
Google Query: hide password in vbscript
Sometimes you may need to prompt the user for a password in one of your vbscripts. No big deal right? It wouldn’t be except that the password can be seen in plain text as the user types it in. There is no way that I know of to hide the password typed in with regular vbscript.
Fortunately, I found a very useful function at the Quick Test Professional blog. It calls upon *shudder* Internet Explorer to create a password box for the user to type in the password. Because it uses Internet Explorer, the password field text is hidden when it is typed in. The code for the function, as well as an example of using it can be downloaded below (just change the *.txt extension to *.vbs).
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.