Jump to content

MessageBox Help


Recommended Posts

SplashImage won't stay on the screen?

#Region

;MsgBox features: Title=Yes, Text=Yes, Buttons=Yes, No, and Cancel, Icon=Question

If Not IsDeclared("iMsgBoxAnswer") Then Local $iMsgBoxAnswer

$iMsgBoxAnswer = MsgBox(35,"What To Do?","Yes,No,Cancal",60)

Select

Case $iMsgBoxAnswer = 6 ;Yes

Case $iMsgBoxAnswer = 7 ;No

Case $iMsgBoxAnswer = 2 ;Cancel

EndSelect

If $iMsgBoxAnswer=6 Then SplashImageOn("Yes","C:\Image0.bmp","500","727","-1","-1",16)

If $iMsgBoxAnswer=7 Then SplashImageOn("No","no.bmp","32","32","-1","-1",16)

If $iMsgBoxAnswer=2 Then SplashImageOn("What","C:\what.bmp","48","48","-1","-1",16)

#EndRegion

Link to comment
Share on other sites

  • Developers

If this is all the code then that would make sense since your script will end thus close the splash.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...