dextry Posted December 22, 2016 Share Posted December 22, 2016 Hello, I am a new starter when it comes to scripting. I want to automate login to SAP logon , i have managed to make it start and enter a Password and username but i need to enter those in the script. I was wondering if it could read and enter the password from a local file so i don't need to edit the script every time i changed my SAP password. So basically i want the script to enter a password from a local file so i don't have to edit the script for every SAP instance and every time my sap password expires. Need help , please. Thank you in advance. If you have any other ways to do this, please let me know. Link to comment Share on other sites More sharing options...
careca Posted December 22, 2016 Share Posted December 22, 2016 (edited) There is, but there is also the possiblity that someone can get the password. #include <GUIConstantsEx.au3> $Ini = @ScriptDir& '\Text.ini' If FileExists($Ini) Then Local $TextIniRead1 = IniRead($Ini, "Paste", "1", "Not found") Else IniWrite($Ini, "Paste", "1", '') EndIf HotKeySet('{+}', 'Text') Func Text() ConsoleWrite($TextIniRead1 & @CRLF) Send($TextIniRead1) Send("{TAB}") EndFunc ;==>Mail1 Do Sleep(100) Until $GUI_EVENT_CLOSE=1 Very simple, just to showcase. Edited December 22, 2016 by careca dextry 1 Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
dextry Posted December 22, 2016 Author Share Posted December 22, 2016 Thank you for the fast reply Link to comment Share on other sites More sharing options...
careca Posted December 22, 2016 Share Posted December 22, 2016 No problem, was it what you were looking for? dextry 1 Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
dextry Posted January 4, 2017 Author Share Posted January 4, 2017 Yeah, it work perfectly thank a lot for the support:D careca 1 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