Jump to content
Sign in to follow this  
pligor

Internet Browser control

Recommended Posts

pligor

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.

Share this post


Link to post
Share on other sites
Walls192

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 by Walls192

Share this post


Link to post
Share on other sites
pligor

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

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  

×