pecsenye Posted July 3, 2015 Posted July 3, 2015 Hello,I can sing in to the every website this script: #include <IE.au3>Call ("signIn")Func signIn () Global $oIE = _IECreate ("http://website name") Local $username = _IEGetObjByName ($oIE,"username") ; view data from actual website Local $password = _IEGetObjByName ($oIE,"password") ; view data from actual website Local $button = _IEGetObjByName ($oIE,"login") ; view data from actual website _IEFormElementSetValue ($username, "my user name") _IEFormElementSetValue ($password, "my password") _IEAction ($button, "click") ; view data from actual websiteEndFunc My problem:In this code I write my username and password manually, but I'd like to the code can read the datas from the TXT file. (For example: 1. line = username, 2. line = password)Thanks for helping!
Developers Jos Posted July 3, 2015 Developers Posted July 3, 2015 You could use the IniRead() functions and create an INI file with this information...although this isn't very ssecure.Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
pecsenye Posted July 3, 2015 Author Posted July 3, 2015 Thank you, but succeeded.The script read the data's from TXT file.
vzh101 Posted August 28, 2018 Posted August 28, 2018 I am trying to do the same but how did you manage to get the username and password from Text file? Thanks!
caramen Posted August 28, 2018 Posted August 28, 2018 49 minutes ago, vzh101 said: I am trying to do the same but how did you manage to get the username and password from Text file? Thanks! IniRead IniWrite My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
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