Jump to content

Recommended Posts

Posted

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.

Posted (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 by careca
  Reveal hidden contents

IUIAutomation - Topic with framework and examples

Au3Record.exe

Posted

No problem, was it what you were looking for?

  Reveal hidden contents

IUIAutomation - Topic with framework and examples

Au3Record.exe

  • 2 weeks later...

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...