Jump to content

Recommended Posts

Posted

Hi Guys,

I've spent half an hour searching but did not find anything related to my needs. I'd like to input text in a text field in a web browser. Is it possible to do this? I tried writing a script using all the informations that I got from Windows Info Tool, but that didn't go too well.

Any help is much appreciated.

Thanks!! :)

Dreamzboy

Posted

The _IE* functions are what you need. Look for:

_IEGetObjByName()

_IEFormElementSetValue()

And all the other _IEForm*() functions you can find :)

There are examples using google for what you want, they are quite clear. If you need further help, just let us know ^_^

Posted

Thanks Nahuel for the quick reply. I heard of that fuction but couldn't find it on AutoIT documentation. Where can I find more information about it?

Much appreciated.

Posted

Well, in the help file! :) Go to SciTe editor and press F1.

This is the example for _IEFormElementSetValue()

#include <IE.au3>
$oIE = _IECreate ("http://www.google.com")
$oForm = _IEFormGetObjByName ($oIE, "f")
$oQuery = _IEFormElementGetObjByName ($oForm, "q")
_IEFormElementSetValue ($oQuery, "AutoIt IE.au3")
_IEFormSubmit ($oForm)

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...