Here's what's suppose to happen:
Suspend Script
- Press ALT+F7 to Suspend Script
- Prompt For Password. Repeat until correct.
- If correct password,
- Show a message
- Suspend Script
- Set the password answer back to 0 (password is actually 0000 in this case)
[*]Press ALT+F8 to Resume Script
[*]Turn off Suspend Script
[*]Show a message that script is no longer suspended.
Here's what's actually happening:
- Press ALT+F7 to turn off script - OK
- Press ALT+F8 to turn off Script. Script turns off OK but does not show a message.
- Press ALT+F7 to turn off script (Second time). Does not prompt for a password. Script just suspends. I noticed mypw is now equal to whatever I set it, in this case, mypw is 0.
Step 1 runs OK. Steps 2 and 3 run identical for the next several times of turning the script off and on (ALT+F7 and ALT+F8).
- Not being prompted for password second time even though set mypw to something other than the password within the script.
- Message not being displayed when resuming password.
Code: Select all
p::Return
!F7::
while(mypw != 0000)
Inputbox,mypw,Pause Script, Enter Password,HIDE
if(mypw=0000)
{
MsgBox, %mypw%
mypw=0
Suspend
Return
}
!F8::Suspend, Off
Return
MsgBox,Continue
Return