Skip to content

Instantly share code, notes, and snippets.

@JoeGlines
Last active April 26, 2021 15:35
Show Gist options
  • Save JoeGlines/cc23cdcc76d1a6ce8cd5acb476509a28 to your computer and use it in GitHub Desktop.
Save JoeGlines/cc23cdcc76d1a6ce8cd5acb476509a28 to your computer and use it in GitHub Desktop.
;*******************************************************
; Want a clear path for learning AutoHotkey; Take a look at our AutoHotkey Udemy courses. They're structured in a way to make learning AHK EASY
; Right now you can get a coupon code here: https://the-Automator.com/Learn
;*******************************************************
#SingleInstance,Force
username := "Jackie"
msgbox % "Name: " username "`nPassword: " password()
return
password(){
FilePath := A_ScriptFullPath
IniRead, Var, %FilePath%:Stream:$DATA, Settings, Pass, error
If (Var="error"){
InputBox, Var , New, Please enter password, HIDE
IniWrite, %Var%, %FilePath%:Stream:$DATA, Settings, Pass
}
return Var
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment