Jump to content

Write in textarea and press a button on a web site


Recommended Posts

Hi, i need to use Autoit to write a text in a textarea, and then, press a button into one web site.

For example, make a search in www.google.com pressing the button for the search.

Should I use IE.au3?

Thanks to all in advance.

P.S = Sorry my English, I am Italian.

Link to post
Share on other sites

You could look in help file for IE.au3 there you have an example for google.com.

or here is the code for google translate. (It is the same code from help file only changed the name of form and element)

#include <IE.au3>
$oIE = _IECreate("http://translate.google.com/", 1)
$oForm = _IEFormGetObjByName($oIE, "text_form")
Local $oQuery = _IEFormElementGetObjByName($oForm, "source")
_IEFormElementSetValue($oQuery, "You can write here what ever you want")
_IEFormSubmit($oForm)
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...