Jump to content

Recommended Posts

Posted

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.

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

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...