godspeedcapri Posted November 13, 2006 Share Posted November 13, 2006 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 Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted November 13, 2006 Share Posted November 13, 2006 check out _IEGetObjByName , _IEFormGetObjByName, _IEFormSetValue, _IEFormSubmit Link to comment Share on other sites More sharing options...
godspeedcapri Posted November 13, 2006 Author Share Posted November 13, 2006 #include <IE.au3> $oIE = _IECreate ("http://www.google.com") $oForm = _IEFormGetObjByName ($oIE, "f") $oQuery = _IEFormElementGetObjByName ($oForm, "q") _IEFormElementSetValue ($oQuery, "AutoIt IE.au3") _IEFormSubmit ($oForm) Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted November 13, 2006 Share Posted November 13, 2006 (edited) congrats lol remember to use code tags IE [code] SCRIPT [./code](remove the period) Edited November 13, 2006 by thatsgreat2345 Link to comment Share on other sites More sharing options...
Confuzzled Posted November 19, 2006 Share Posted November 19, 2006 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. 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