Jump to content

Recommended Posts

Posted

Clicking either the Yes or No button does the same thing....

MsgBox(292,"Continue...","Keep searching?")
If @error = 7 Then Exit

Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Posted

#Region --- CodeWizard generated code Start ---
;MsgBox features: Title=Yes, Text=Yes, Buttons=Yes and No, Icon=Question
If Not IsDeclared("iMsgBoxAnswer") Then Dim $iMsgBoxAnswer
$iMsgBoxAnswer = MsgBox(36,"Continue...","Keep searching?")
Select
   Case $iMsgBoxAnswer = 6 ;Yes

   Case $iMsgBoxAnswer = 7 ;No

EndSelect
#EndRegion --- CodeWizard generated code End ---

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Posted

i didn't put code in between, just fill in the blanks in the if statements

for example

#Region --- CodeWizard generated code Start ---
;MsgBox features: Title=Yes, Text=Yes, Buttons=Yes and No, Icon=Question
If Not IsDeclared("iMsgBoxAnswer") Then Dim $iMsgBoxAnswer
$iMsgBoxAnswer = MsgBox(36,"Continue...","Keep searching?")
Select
   Case $iMsgBoxAnswer = 6 ;Yes
        MsgBox(0,"Test","You pressed Yes")
   Case $iMsgBoxAnswer = 7 ;No
        Exit
EndSelect
#EndRegion --- CodeWizard generated code End ---

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Posted

Cool, thanks. I've never needed this sort of thing so I didn't have any experience with it.

Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

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...