Jump to content

Displaying Splash Screen with MSG box in same time


 Share

Recommended Posts

hello guys

i have a little question, if i wrote this

$destination = "C:\Picture.Jpg" ;This only are Example
SplashImageOn("Splash Screen", $destination,250,50)
Sleep(3000)
SplashOff()
MsgBox(0,"Title","Text")

the Splash Screen will Display First, after that the msg will appear

i want the splash and the message box display together :D

Edited by TarwadaC4
Link to comment
Share on other sites

Try this:

$destination = "C:Picture.Jpg" ;This only are Example
SplashImageOn("Splash Screen", $destination,250,50,-1, @DesktopHeight / 2 - 200)
MsgBox(0,"Title","Text")
;~ Sleep(3000)
SplashOff()

Br,

UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

$destination = "C:Picture.Jpg" ;Address to image file
SplashImageOn("Splash Screen", $destination, 250,50,-1, @DesktopHeight / 2 - 200)
;"Splash Screen" = Splash Title
;$destination = Address to iamge file that you decleared in first line
;250, 50 = Width and Height of Splash
;~ -1 = x pos = Center of desktop
;~ @DesktopHeight / 2 - 200 = For example in 800x600 res it means : ((600 / 2) - 200) = 100

MsgBox(0,"Title","Text") ;Show a Message Box
SplashOff() ;Hide Spalsh

Edited by D4RKON3
Link to comment
Share on other sites

4 lines of code shouldn't be a challenge to understand it but here we go:

With SplashImageOn() you display the image on the screen as long as SplashOff() will be called or script ends.

With MsgBox() you display the message box which waits for the button to get pushed.

Afterwards the splash screen and messagebox will be closed.

Check the help file for the parameters for SplashImageOn().

Br,

UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

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

×
×
  • Create New...