Jump to content
Sign in to follow this  
ShaunEdwinGoodyear

MessageBox Help

Recommended Posts

ShaunEdwinGoodyear

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

Share this post


Link to post
Share on other sites
Jos

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

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


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
Sign in to follow this  

×