Jump to content

How to target an input box for login/pass


Recommended Posts

Ok so I have IE embed to a GUI, I want to be able to target a login and pass box and have it start typing the info needed in order to log in. How would I go about this?

Also, is it possible to have it do this while minimized, and not affecting actual usage of the keyboard/mouse?

Link to comment
Share on other sites

Assuming a fairly standard login page:

Step 1. If the website uses frames then make an object for the correct frame using _IEFrameGetObjByName(), or _IEFrameGetCollection().

Step 2. Make an object for the form that contains the input boxes using _IEFormGetObjByName(), or _IEFormGetCollection().

Step 3. Make an object for the username using _IEFormElementGetObjByName (), or _IEFormElementGetCollection().

Step 4. Use _IEFormElementSetValue() to enter the username.

Step 6. Repeat step 3 for the password.

Step 7. Repeat step 4 for the password.

Step 8. _IEFormSubmit()

A link to the login page, or a look at it's source make it easier to help you.

Link to comment
Share on other sites

Could you give me an example? When I try it gives me an error at the underscore.

_IEFrameGetObjByName("login")

^ ERROR

I'm pretty much just using the example script for _IECreateEmbedded

I'm a newb at all this, the only thing I've worked with before was Send Click Move and etc. I'm trying to utilize the help file, but on a lot of it I cannot follow what it's saying.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...