Sign in to follow this  
Followers 0
Hentrinity

Help with FileInstall

5 posts in this topic

Hey, theres something wrong wif the fileinstall, the image is meant to combine with compile script, and stay like that. But as soon as I move the picture away from D:\ it fails to work, and the image from SplashImageOn doesn't work

CODE
Dim $iTimerIntervall = 7500

Dim $iTimer = TimerInit()

While 1

If TimerDiff($iTimer) >= $iTimerIntervall Then

MsgBox(0, "Error", "Brenton is a......", 5)

FileInstall("D:\Test.bmp", "C:\Test.bmp")

SplashImageOn("", "\Test.bmp", @DesktopWidth, @DesktopHeight, 0, 0)

$opt = 1

Sleep(4000)

SplashOff()

$iTimer = TimerInit()

EndIf

Sleep(250)

WEnd

Plz Help!!

Share this post


Link to post
Share on other sites



SplashImageOn("", "\Test.bmp", @DesktopWidth, @DesktopHeight, 0, 0)

should be

SplashImageOn("", "C:\Test.bmp", @DesktopWidth, @DesktopHeight, 0, 0)


AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line

Share this post


Link to post
Share on other sites

It works, Thx

Wht happens if I delete the image from C:\ as well?

Share this post


Link to post
Share on other sites

It works, Thx

Wht happens if I delete the image from C:\ as well?

When you run your compiled script FileInstall will extract another Test.bmp in C:. If you running from Scite FileInstall will copy another Test.bmp from D: into C:

AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line

Share this post


Link to post
Share on other sites

It works, Thx

Wht happens if I delete the image from C:\ as well?

If you are running a compiled script it would not matter as it would be replaced as soon as you run the script. To try it delete the file into the recycle bin and run the script. If I am wrong you can always retrieve the file from the recycle bin.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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  
Followers 0