Sign in to follow this  
Followers 0
Valnurat

A little help from my Autoit friends

5 posts in this topic

#1 ·  Posted (edited)

Hi.

I'm not sure if what I am trying to violiates the terms of this forum, and if it does I applogise.

But I'm sitting in a position at work, where I daily need to create users in our systems. I have done autoit scripting before, but I have never tried to navigate through IE. Some of our systems requires use of IE and her I need you guys.

How do I navigate to webpage and "press" the "button" in the menu:

Configuration

and the submenu:

Security

and the submenu:

User

and then enter text to some fields on the webpage called:

User ID

First Name

Last Name

Thank you in advance.

Edited by Valnurat

Yours sincerely

Kenneth.

Share this post


Link to post
Share on other sites



The builtin IE UDF helps you to automate this task. Have a look at the help file. The _IEForm* functions is what you need.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - 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

The builtin IE UDF helps you to automate this task. Have a look at the help file. The _IEForm* functions is what you need.

 

Thank you for the feedback.

First thing, I see this "IE UDF" all the time here in the forum. What does UDF stand for?

Second thing, I look at the _IEForm* and found this exampel:

#include <IE.au3>

Local $oIE = _IECreate("http://www.google.com")

Local $oForm = _IEFormGetObjByName($oIE, "f")

Local $oQuery = _IEFormElementGetObjByName($oForm, "q")

_IEFormElementSetValue($oQuery, "AutoIt IE.au3")

_IEFormSubmit($oForm)

What is the "f" in the:

Local $oForm = _IEFormGetObjByName($oIE, "f")

 

because when I try to run it IE opens and point to www.google.com, but after notthing happens.

I look on other treads here that I need to look in the htmlsource, but I do not see anything that could explain "f".

Note: My buttons on my google is danish.


Yours sincerely

Kenneth.

Share this post


Link to post
Share on other sites

"f" is the name of a form in the html code. But it seems like it has changed since the sample code was written. Have a look at the source code of www.google.com and you will find a form with id=gbqf.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - 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

"f" is the name of a form in the html code. But it seems like it has changed since the sample code was written. Have a look at the source code of www.google.com and you will find a form with id=gbqf.

Thank you very much.

have a nice weekend.


Yours sincerely

Kenneth.

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  
Followers 0