Jump to content
Sign in to follow this  
Sedoc94

Form ID is Unique, How to Insert Text into Input?

Recommended Posts

Sedoc94

Hello,

I'm trying to make AutoIt put some text in IE in a textarea and submit the form afterwards.

But the problem I have is that the form has no name, but a ID. And this ID is changing everytime.

So I think I need to somehow make AutoIt look into the HTML source and extract the form ID, so I can use this for _IEGetObjById

so I can insert text and submit the form.

Is there anyone who could please help me?

Thanks! ;)

Edited by Sedoc94

Share this post


Link to post
Share on other sites
Sedoc94

It's my own website on my local host.

Share this post


Link to post
Share on other sites
water

You could use function_IEFormGetCollection to get a collection object variable representing the Forms in the document or a single form by index.

Then you can access the elements in the form.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
Sedoc94

Ah yes, this worked! Thanks ;)

Share this post


Link to post
Share on other sites
water
;)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

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  

×