Jump to content

Recommended Posts

Posted

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:

Posted (edited)

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
Posted

$destination = "Your image xd"
$grootex =200
$grootey = 83
SplashImageOn("sd",$destination,$grootex , $grootey,(@DesktopWidth/2)-($grootex/2),(@DesktopHeight/2)-($grootey/2))

This works to :lmao:

-jaenster

Posted

Note , Do you want to remove that title bar make use this instand my old post

SplashImageOn("sd",$destination,$grootex,$grootey,(@DesktopWidth/2)-($grootex/2),(@DesktopHeight/2)-($grootey/2),1)

-jaenster

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