Jump to content
Sign in to follow this  
dreamzboy

Input Text in Browser

Recommended Posts

dreamzboy

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

Share this post


Link to post
Share on other sites
Nahuel

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 ^_^

Share this post


Link to post
Share on other sites
dreamzboy

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.

Share this post


Link to post
Share on other sites
Nahuel

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)

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  

×