pligor Posted January 22, 2008 Share Posted January 22, 2008 Hello! Has anyone found a way to control forms of a web browser using a script? I mean opening let's say the internet explorer at a certain webpage and automatically pass some arguments to complete a form you already know it will be there and also call the submit() function in that form. Link to comment Share on other sites More sharing options...
Walls192 Posted January 22, 2008 Share Posted January 22, 2008 (edited) Look at the IE funtions in the help file, ('_IEFormElementGetObjByName' or '_IEFormElementGetCollection') #include <IE.au3> $oIE = _IECreate ("http://www.google.com") $oForm = _IEFormGetObjByName ($oIE, "f") $oQuery = _IEFormElementGetObjByName ($oForm, "q") _IEFormElementSetValue ($oQuery, "AutoIt IE.au3") _IEFormSubmit ($oForm) Edited January 22, 2008 by Walls192 Link to comment Share on other sites More sharing options...
pligor Posted January 22, 2008 Author Share Posted January 22, 2008 Thanks a lot! The AutoIt has so many features that sometimes you get lost in the help file. I'll try it and get back with results 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