Jump to content
Sign in to follow this  
thescarsolife

How to target an input box for login/pass

Recommended Posts

thescarsolife

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?

Share this post


Link to post
Share on other sites
thescarsolife

I've looked but still don't know. Is there an example of what I'm looking for somewhere?

Share this post


Link to post
Share on other sites
Tvern

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.

Share this post


Link to post
Share on other sites
thescarsolife

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.

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.