when you get to the
question1:
MsgBox, The First password is %ispassright% The second password is %passright%
;Password Protection Program: Xatmo97 #Persistent OnExit, Exit RegWrite, REG_SZ, HKEY_CURRENT_USER, SOFTWARE\Microsoft\Windows\CurrentVersion\Run, passwordstart, C:\Hello.exe start: settitlematchmode, 3 settimer, password settimer, stoptaskman settimer, noexplorer return password: Process, Close, explorer.exe MsgBox, This Computer is password Protected IfExist, C:\password.txt {InputBox, password, Enter Password 1, , hide FileReadLine, ispassright, C:\password.txt, 1 if Password = %ispassright% { Goto, 2 } else { MsgBox, wrong password Goto, question1 } } else {InputBox, passcreate, Select Password, Please Enter What password#1 Will be., HIDE FileAppend, %passcreate%, C:\password.txt Goto, 2 } return 2: IfExist, C:\password2.txt {InputBox, password, Enter Password 2, , hide FileReadLine, passright, C:\password2.txt, 1 if Password = %passright% { Goto, end } else { MsgBox, wrong password Goto, start } } else {InputBox, passcreate, Select Password, Please Enter What password#2 Will be., HIDE FileAppend, %passcreate%, C:\password2.txt Goto, question } return question: InputBox, questionmake, Enter Your secrity question, , hide FileAppend, %questionmake%, C:\Question.txt InputBox, answermake, Enter The Answer to the question, , hide FileAppend, %answermake%, C:\Answer.txt Goto, start question1: MsgBox, If you forgot you password here is the security Question FileReadLine, questionmake, C:\Question.txt, 1 MsgBox, %questionmake% InputBox, answermake1, Enter The Answer, , hide FileReadLine, answermake, C:\Answer.txt, 1 if answermake1 = %answermake% { MsgBox, The First password is %ispassright% The second password is %passright% Goto, start } else { MsgBox, Wrong answer Goto, start } return stoptaskman: IfWinExist, Windows Task Manager { winClose, Windows Task Manager } return noexplorer: Process, Exist, explorer.exe Process, Close, explorer.exe return end: ExitApp Exit: Run, explorer.exe ExitApp