Hi:
In my school students can take pwd protected test at the testing center. There are over 100 pwds for these tests (~10 instructors X 4-5 tests X 3-4 courses...) the testing center is overwhelmed.
The pwd is entered in a textbox of an IE page. We have no contorl over the web page. The pwd-box is the only text box on the page and the page is the only window open at the time when the pwd is entered.
I want to store all pwds at the start of the term and the student worker to be able to enter the pwd without having to key it in and without seeing the pwd. Student workers are also students so I assume that the temptation is there.
In some way the pwd would "fly" from a form on my pwd manager to the pwd-box on the page using only the mouse.
I thought of having a pwd-box on a form and transferring the pwd with a copy and paste or drag but pwd-boxes do not allow either. (Plus it could be copied staight into Notepad.)
I wrote a small VB.Net app, that looks for the URL, loops though the controls of the page hoping to use a "sendkeys" approach but the pwd-box is not hit. There is no reference of it in the source of the page.
I've looked at windows functions such as enumwindows and WindowFromPoint but I don't know if these are the ones for the job nor have I found code snippets for .Net.
Any help
Thanks.
B.

sending pwd to a pwd textbox in IE from another app
ultra2
Hi Andreas,
Thanks for the reply.
I'm not sure that I understand your suggestion.
I can certainly use a WebBrowser control and navigate to the site. (Please keep in mind that we only rent space on this site to store and administer the tests so I don't have any control of the webpage that contains the pwd-box. )
Once I navigate to the site with the WebBrowser control, how would I know which textbox to post to
Regards,
B.
trent_m
Controls in a browser are windowless controls. You will not be able to use for instance SetWindowText() API calls on them.
To interact inside a browser with the control you will need to create a browser helper object.
You could make your own browser by incorporating a WebBrowser control and the first thing you do is post the password to the login form.
Kimme
I do not know if there is any class in the framework that lets you build up the postdata dynamically. If you know a way that is the recommended way.
If not you might catch the data sent to the server and modify it for different passwords. You can use a HTTP traffic debug/analyzing tool like Fiddler to catch the data sent.
You can then use the Navigate method on the WebBrowser control to directly post the postdata with the password to the server without the user ever seeing the login screen. If all goes well the user will end up at the screen after successful login.