Jump to content

Recommended Posts

is it posible to center an image

i already got this:

$destination = @ScriptDir & "\image.jpg"
SplashImageOn("Splash Screen", $destination,250,83,400,300,1)
WinSetTrans("Splash Screen", "", 500)
Sleep(3000)
SplashOff()

but thats almost centerd however is it posible on any resolution ? :lmao:

Link to post
Share on other sites

Typed directly into the browser, but this should work :

SplashImageOn("Splash Screen", $destination, _

(@DesktopWidth / 2) - (400 / 2), (@DesktopHeight / 2) - (300 / 2), _

400, 300, 1)

I split the code to three lines as it was too long... I also used a quote-box instead of a

code-box to make colors work. I've also colored the width in blue and the height in red

to make it easier to understand.

Edited by Helge
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...