## Recommended Posts

Please note @hour = 9 PM

```;;;Password;;;

\$bLoop = 1
While \$bLoop = 1
If @error = 1 Then
Exit
Else
; They clicked OK, but did they type the right thing?
If \$text = "A24" Then
\$test = 24 * @hour ;Tested at 9 PM;; 24 * 21
If \$test = "216" Then
ExitLoop
EndIf
if NOT \$test = "504" Then
MsgBox(4096, "Error", "Wrong password try again...")
EndIf
Else
MsgBox(4096, "Error", "Wrong password try again...")
EndIf
EndIf
WEnd

; Print the success message

; Finished!```

It gets stuck in an infinate loop if you get the password right (A24)

To find out the correct numbers do 24 * the hour. (Using 24 hour clock.)

[left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]

##### Share on other sites

Please note @hour = 9 PM

```;;;Password;;;

\$bLoop = 1
While \$bLoop = 1
If @error = 1 Then
Exit
Else
; They clicked OK, but did they type the right thing?
If \$text = "A24" Then
\$test = 24 * @hour ;Tested at 9 PM;; 24 * 21
If \$test = "216" Then
ExitLoop
EndIf
if NOT \$test = "504" Then
MsgBox(4096, "Error", "Wrong password try again...")
EndIf
Else
MsgBox(4096, "Error", "Wrong password try again...")
EndIf
EndIf
WEnd

; Print the success message

; Finished!```

It gets stuck in an infinate loop if you get the password right (A24)

To find out the correct numbers do 24 * the hour. (Using 24 hour clock.)

You do realize that 24 * @Hour (9 p.m.) = 504 and 24 * 9(@Hour = 9 a.m.) = 216, right?

##### Share on other sites

Yes, I do but..How would that really change anything to the script?

And it needs to use @hour, becasue I only want the script to be able to open in that hour.

Yay, this works now.

```;;;Password;;;

\$bLoop = 1
While \$bLoop = 1
If @error = 1 Then
Exit
Else
; They clicked OK, but did they type the right thing?
If \$text = "A24" Then
\$test = 24 * @hour
If \$test = "528" Then
ExitLoop
EndIf
if NOT \$test = "528" Then
MsgBox(4096, "Error", "Wrong password try again...")
EndIf
Else
MsgBox(4096, "Error", "Wrong password try again...")
EndIf
EndIf
WEnd

; Print the success message

; Finished!```
10 P.M. Edited by Firestorm

[left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]

##### Share on other sites

Yes, I do but..How would that really change anything to the script?

And it needs to use @hour, becasue I only want the script to be able to open in that hour.

Yay, this works now.

```;;;Password;;;

\$bLoop = 1
While \$bLoop = 1
If @error = 1 Then
Exit
Else
; They clicked OK, but did they type the right thing?
If \$text = "A24" Then
\$test = 24 * @hour
If \$test = "528" Then
ExitLoop
EndIf
if NOT \$test = "528" Then
MsgBox(4096, "Error", "Wrong password try again...")
EndIf
Else
MsgBox(4096, "Error", "Wrong password try again...")
EndIf
EndIf
WEnd

; Print the success message

; Finished!```
10 P.M.

Exactly, you had it set to "216" for saying that the password was correct, but that would be at 9 a.m., not 9 p.m., which would be "504"

Now you have it set to "528" which would be correct for 10 p.m.

##### Share on other sites

Ya, I noticed that... :">

[left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]

## Create an account

Register a new account

×

• Wiki

• Back

• #### Beta

• Git
• FAQ
• Our Picks
×
• Create New...