Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Launch Explorer from another Program and Autofill Username and Password

Launch Explorer from another Program and Autofill Username and Password

Scheduled Pinned Locked Moved C#
designquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    picardy
    wrote on last edited by
    #1

    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.

    L 1 Reply Last reply
    0
    • P picardy

      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.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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[^]

      P 1 Reply Last reply
      0
      • L Lost User

        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[^]

        P Offline
        P Offline
        picardy
        wrote on last edited by
        #3

        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.

        L 1 Reply Last reply
        0
        • P picardy

          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.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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[^]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups