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
PsaltyDS

Have you read the help file and tried the various example scripts under the _IE* functions?

:mellow:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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
Tvern

_IEFrameGetObjByName() Helpfile

You need to supply the object variable of the embedded instance of IE.

Supply the source of the page if you want less abstract examples.

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  

×