Launch Explorer from another Program and Autofill Username and Password
-
Is it possible to design a program that will launch explorer, wait until a dialog box appears in explorer and then activate a button in the dialog box. Wait until another dialog box appears and then automatically complete the username and password in That dialog box and finally terminate the program? An analogy would be Explorer automatically connecting to one's banks website that does not allow saving username and passwords. This is a program I am trying to develop for visually impaired people for easy login access to the local library. When you launch explorer in the library it automatically tries to connect to the library's website. All constructive comments are welcome.
-
Is it possible to design a program that will launch explorer, wait until a dialog box appears in explorer and then activate a button in the dialog box. Wait until another dialog box appears and then automatically complete the username and password in That dialog box and finally terminate the program? An analogy would be Explorer automatically connecting to one's banks website that does not allow saving username and passwords. This is a program I am trying to develop for visually impaired people for easy login access to the local library. When you launch explorer in the library it automatically tries to connect to the library's website. All constructive comments are welcome.
Depends where the login is. If it is on the desktop, then yes, you can get a handle to the process and all controls it creates, and manipulate them by sending messages. If it is in the login-screen, then no.
picardy wrote:
This is a program I am trying to develop for visually impaired people for easy login access to the local library.
Yup, but you are suggesting that the locked door opens automatically for them. In that case, it'd be easier to simply remove the lock completely.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
-
Depends where the login is. If it is on the desktop, then yes, you can get a handle to the process and all controls it creates, and manipulate them by sending messages. If it is in the login-screen, then no.
picardy wrote:
This is a program I am trying to develop for visually impaired people for easy login access to the local library.
Yup, but you are suggesting that the locked door opens automatically for them. In that case, it'd be easier to simply remove the lock completely.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
When one opens explorer in the library, it attempts to connect to the library wi-fi network. The dialog boxes are inside the explorer window. I cannot remove or change any library security measures. I was wondering if I had a handle to that instance of explorer if it would be possible to loop for all objects inside explorer's window and if that object was of type 'button' and label contains 'Accept' if I could select that button. Similarly, for the next dialog window.
-
When one opens explorer in the library, it attempts to connect to the library wi-fi network. The dialog boxes are inside the explorer window. I cannot remove or change any library security measures. I was wondering if I had a handle to that instance of explorer if it would be possible to loop for all objects inside explorer's window and if that object was of type 'button' and label contains 'Accept' if I could select that button. Similarly, for the next dialog window.
There's an app called 'UISpy' (or similar) that shows the handle (and other stuff) if you hover your mouse over a control (regardless which app). It uses the same technique; sending messages to a control. IIRC, then "WM_SETTEXT" would be the message to set a certain string in a foreign edit-control. It won't be as easy as looping all the controls; native apps do not use the .NET framework. You'd have to dive into the winapi.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]