Jump to content

Recommended Posts

How do I get my script to repeat itself after the person clicks no (for not having a password)???

AutoItSetOption ("TrayIconHide", 1)
Break(1)
WinWaitActive("Johnny's Stuff")
WinClose("Johnny's Stuff")
;--------------------------------------------------------------------------
$answer = MsgBox(52, "Grant access?", "Do you have the password?")
;--------------------------------------------------------------------------
  If $answer = 6 Then
;--------------------------------------------------------------------------
$pass = InputBox("Verifying rights...", "Please enter password.", "", "*")
  If $pass = "surenovida" Then
     Run("Johnny's Stuff", "C:~~~~~~~", @SW_MAXIMIZE)
     Exit 
  Else
    MsgBox(17, "Incorrect!!!", "Game over loser!!!", 10)
     WinWaitClose("Incorrect!!!", "Game over loser!!!")
     Shutdown(12)
     Exit
  EndIf
;--------------------------------------------------------------------------
  ElseIf $answer = 7 Then ContinueLoop
     MsgBox(16, "Sorry...", "Access Denied!!!", 10)
;--------------------------------------------------------------------------
  EndIf

I want it to begin again after this part happens

ElseIf $answer = 7 Then ContinueLoop
     MsgBox(16, "Sorry...", "Access Denied!!!", 10)
;--------------------------------------------------------------------------
  EndIf
Link to post
Share on other sites

Check out do until in the help file and use the error in the cancel button to allow them to exit as well

Rick

How do I get my script to repeat itself after the person clicks no (for not having a password)???

AutoItSetOption ("TrayIconHide", 1)
Break(1)
WinWaitActive("Johnny's Stuff")
WinClose("Johnny's Stuff")
;--------------------------------------------------------------------------
$answer = MsgBox(52, "Grant access?", "Do you have the password?")
;--------------------------------------------------------------------------
  If $answer = 6 Then
;--------------------------------------------------------------------------
$pass = InputBox("Verifying rights...", "Please enter password.", "", "*")
  If $pass = "surenovida" Then
     Run("Johnny's Stuff", "C:~~~~~~~", @SW_MAXIMIZE)
     Exit 
  Else
    MsgBox(17, "Incorrect!!!", "Game over loser!!!", 10)
     WinWaitClose("Incorrect!!!", "Game over loser!!!")
     Shutdown(12)
     Exit
  EndIf
;--------------------------------------------------------------------------
  ElseIf $answer = 7 Then ContinueLoop
     MsgBox(16, "Sorry...", "Access Denied!!!", 10)
;--------------------------------------------------------------------------
  EndIf

I want it to begin again after this part happens

ElseIf $answer = 7 Then ContinueLoop
     MsgBox(16, "Sorry...", "Access Denied!!!", 10)
;--------------------------------------------------------------------------
  EndIf

<{POST_SNAPBACK}>

Only $2.00 with Resale Rights How to Block Better for Martial Artists and NonMartial Artistshttp://kirkhamsebooks.com/MartialArts/Bloc...tterEbook_m.htm

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...