Sign in to follow this  
Followers 0
godspeedcapri

Input random text into IE Web page

5 posts in this topic

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

Share this post


Link to post
Share on other sites



check out _IEGetObjByName , _IEFormGetObjByName, _IEFormSetValue, _IEFormSubmit

Share this post


Link to post
Share on other sites

#include <IE.au3>

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

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

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

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

_IEFormSubmit ($oForm)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

congrats lol

remember to use code tags IE

[code]
SCRIPT
[./code](remove the period)
Edited by thatsgreat2345

Share this post


Link to post
Share on other sites

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.

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  
Followers 0