Jump to content
dextry

Enter SAP Password from local file HELP Please

Recommended Posts

dextry

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.

Share this post


Link to post
Share on other sites
careca

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 by careca
  • Like 1

Spoiler

Paster - Main function is to paste text, but has more functions.

OpenW - Open With... alternative, Open any file with any application, set it's icon, set application as default.

Renamer - Rename files and folders, remove portions of text from the filename etc.

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

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.

Firefox Profile Backup - Backup/restore previously saved profile.

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

Share this post


Link to post
Share on other sites
careca

No problem, was it what you were looking for?

  • Like 1

Spoiler

Paster - Main function is to paste text, but has more functions.

OpenW - Open With... alternative, Open any file with any application, set it's icon, set application as default.

Renamer - Rename files and folders, remove portions of text from the filename etc.

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

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.

Firefox Profile Backup - Backup/restore previously saved profile.

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

Share this post


Link to post
Share on other sites
dextry

Yeah, it work perfectly :D:D thank a lot for the support:D

  • Like 1

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

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.