Valnurat Posted May 17, 2013 Share Posted May 17, 2013 (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 May 17, 2013 by Valnurat Yours sincerely Kenneth. Link to comment Share on other sites More sharing options...
water Posted May 17, 2013 Share Posted May 17, 2013 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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Valnurat Posted May 17, 2013 Author Share Posted May 17, 2013 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. Link to comment Share on other sites More sharing options...
Solution water Posted May 17, 2013 Solution Share Posted May 17, 2013 "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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Valnurat Posted May 17, 2013 Author Share Posted May 17, 2013 "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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now