Jump to content

Recommended Posts

Posted

Hi,

I want to develop a script to open a IE Webpage (eg:google.com) and try a search in it.

I am wondering if there is a method to input text into the web page input box and click on search automatically.

All I have done so far is launching google

#include <IE.au3>

_IECreate ("www.google.com" , 1, 1, 0)

Any info or help is much appreciated.

Thanks in advance guys.

Godspeedcapri

Posted

#include <IE.au3>

$oIE = _IECreate ("http://www.google.com")

$oForm = _IEFormGetObjByName ($oIE, "f")

$oQuery = _IEFormElementGetObjByName ($oForm, "q")

_IEFormElementSetValue ($oQuery, "AutoIt IE.au3")

_IEFormSubmit ($oForm)

Posted

Careful observation of the address line in your browser when performing Google searches should make automation a piece of cake. Have you tried searching Google manually to see what happens? You can then emulate this with opening the appropriately formulated URL in your browser using AutoIT.

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
×
×
  • Create New...