Code: Select all
/*
*************************************************
How to run.
1.reads the the content of password.txt as password and matches it with the entry give by the user.
2. To run the script and test it just make a txt file namely password.txt in the same folder .
3. Launch the password window with the shortcut [winKey]+[p] after compiling the script.
*********************************************************
*/
/*
USES:
You can use this script to mask any personal app of yours wuth a password window.
*/
;password window
#o::
global Array := Object()
Loop, Read,password.txt ;LOOP TO READ THE BUTTON FILE
{
Array.Insert(A_LoopReadLine)
}
InputBox, password, Welcome!Enter Password, Enter the Password , hide
if password= ;IF NONE IS SELECTED , RETURN
return
if (password=Array[1])
MsgBox Correct password
else
{ MsgBox Incorrect Password,Try again by Launching the app again.
}