Jump to content
Sign in to follow this  
avery

Splash Image

Recommended Posts

avery

This is an example I found from searching here and checking the au3 docs.

local $m1 = @DesktopHeight / 2
local $m2 = @DesktopWidth / 2

$destination = "install\dodbanner.jpg"

SplashImageOn("Splash Screen", $destination, 520, 62, $m1, $m2, 1)
Sleep(3000)
SplashOff()

I plugged in my img and size and that is all.

The image is not centered and I've tried every possible combination I have thought up so far.

Can anyone help me solve what would appear ;) to be a very simple issue on my part?

Thanks,

avery


www.abox.orgAvery HowellVisit My AutoIt Websitehttp://www.abox.org

Share this post


Link to post
Share on other sites
Bert

This is an example I found from searching here and checking the au3 docs.

local $m1 = @DesktopHeight / 2
local $m2 = @DesktopWidth / 2

$destination = "install\dodbanner.jpg"

SplashImageOn("Splash Screen", $destination, 520, 62, $m1, $m2, 1)
Sleep(3000)
SplashOff()

I plugged in my img and size and that is all.

The image is not centered and I've tried every possible combination I have thought up so far.

Can anyone help me solve what would appear ;) to be a very simple issue on my part?

Thanks,

ummm, try this:

local $m1 = @DesktopHeight / 2
local $m2 = @DesktopWidth / 2

$destination = "install\dodbanner.jpg"

SplashImageOn("Splash Screen", $destination, 520, 62, "", "", 1)
Sleep(3000)
SplashOff()

avery

Share this post


Link to post
Share on other sites
avery

SplashImageOn("Splash Screen", $destination, 520, 62, "", "", 1)

This acted the same as using 0's. It started at top left corner of screen.

I feel I've exhausted my possible options with what I've posted. Maybe I'm missing a function or something :\

EDIT:

Weird....

SplashImageOn("Splash Screen", $destination, 520, 62)

Worked perfect -- Perfectly Centered (If I wanted a title/border on the window)

SplashImageOn("Splash Screen", $destination, 520, 62,"","",1)
SplashImageOn("Splash Screen", $destination, 520, 62," "," ",1)
SplashImageOn("Splash Screen", $destination, 520, 62,'','',1)

All do not worked as expected ;)

Edited by avery

www.abox.orgAvery HowellVisit My AutoIt Websitehttp://www.abox.org

Share this post


Link to post
Share on other sites
PsaltyDS

The empty quotes ("") evaluate to zero when converted from string to number. Use the Default keyword instead:

SplashImageOn("Splash Screen", $destination, 520, 62, Default, Default, 1)

;)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  

×