Jump to content

Recommended Posts

Posted

With only part of the code it's hard to get a picture. But I do see that you don't need the select statement and the if statement. Seems easy enough to just remove the select statement (not the one that you apparently are running the loop with)

Case $msg = $deletelog
           
            Dim $iMsgBoxAnswer
                $iMsgBoxAnswer = MsgBox(292,"Autorun Eater v1.0","Are you sure you want to delete the results log?")
               
                If $iMsgBoxAnswer = 7 Then

                                ;DO SOMETHING HERE?
                   
                Else
                    FileDelete (@ScriptDir & "\results.log")
               
                    ; log deleted traytip
                    TrayTip ("Scan Results", "Results Log Deleted", 1, 1)
                EndIf
Posted

Looks as if you are just looking to continue the loop...

Case $msg = $deletelog
           
            Dim $iMsgBoxAnswer
                $iMsgBoxAnswer = MsgBox(292,"Autorun Eater v1.0","Are you sure you want to delete the results log?")
               
                If $iMsgBoxAnswer = 7 Then
                                continueloop
                Else
                    FileDelete (@ScriptDir & "\results.log")
               
                    ; log deleted traytip
                    TrayTip ("Scan Results", "Results Log Deleted", 1, 1)
                EndIf

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
×
×
  • Create New...