thescarsolife Posted March 5, 2010 Share Posted March 5, 2010 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 More sharing options...
PsaltyDS Posted March 5, 2010 Share Posted March 5, 2010 Have you read the help file and tried the various example scripts under the _IE* functions? 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 Link to comment Share on other sites More sharing options...
thescarsolife Posted March 7, 2010 Author Share Posted March 7, 2010 I've looked but still don't know. Is there an example of what I'm looking for somewhere? Link to comment Share on other sites More sharing options...
Tvern Posted March 7, 2010 Share Posted March 7, 2010 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 More sharing options...
thescarsolife Posted March 7, 2010 Author Share Posted March 7, 2010 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 More sharing options...
Tvern Posted March 9, 2010 Share Posted March 9, 2010 _IEFrameGetObjByName() HelpfileYou need to supply the object variable of the embedded instance of IE.Supply the source of the page if you want less abstract examples. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now