avery Posted August 25, 2008 Posted August 25, 2008 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
Bert Posted August 25, 2008 Posted August 25, 2008 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 The Vollatran project My blog: http://www.vollysinterestingshit.com/
avery Posted August 25, 2008 Author Posted August 25, 2008 (edited) 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 August 25, 2008 by avery www.abox.orgAvery HowellVisit My AutoIt Websitehttp://www.abox.org
PsaltyDS Posted August 25, 2008 Posted August 25, 2008 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now