Sign in to follow this  
Followers 0
Raider

How To Use An Animated Gif With Splashimageon()?

5 posts in this topic

Hi everybody,

I'm trying to use SplashImageOn() with an animated gif to show a kind of 'please wait' message to the user.

I've got an animated gif thats 200w, 100h, approx. 12 frames and is around 300kb.

When I call SplashImageOn() the first image is displayed but the rest of my frames are not displayed.

Does anyone know how to animate my gif? I tried several other animated gif but there was no animation...

-Raider

Share this post


Link to post
Share on other sites



I don't think it's possible to use animated gifs with SplashImage..

If you need a animation, then I think the only thing you can do is to

have a lot of images and change them on SplashImage...

Not so fancy though.. :whistle:

Share this post


Link to post
Share on other sites

Hmmm I already tried that and

1. It flickers

2. It's too CPU intensive...

I want to display an animated 'please wait' screen to the user and I think it's not good when the animation is using more CPU-Power then the operation I want the user to wait for :whistle:

Share this post


Link to post
Share on other sites

You can always try my little HTML function. Not quite the same but animations, javascript, and any html language is fine.

this example copies the clipboard to the window:

AutoItSetOption("TrayIconDebug", 1)
AutoItSetOption("WinTitleMatchMode", 2)

$file="temp.htm"
$color="#FFFFFF"
$title="My AutoIt3 Html"
If FileWriteLine($file, "<title>"&$title&"</title>")=0 Then exit
FileWriteLine($file, "<body bgcolor="& $color &"><font size=-2>" )
If StringInStr(" "&clipget(),"<br>")>0 Then
FileWriteLine($file, clipget() )
Else
FileWriteLine($file, StringReplace(clipget(),@CRLF,"<br>") )
EndIf
FileWriteLine($file, "<br><center><a href=close()>close</a>" )
Run('C:\Program Files\Internet Explorer\IEXPLORE.EXE -k '& @ScriptDir &'\'&$file,'',@SW_HIDE)
WinWait ( $title, "")
WinMove ( $title, "", 10, 10, 400, 400)
WinShow ($title, "", @SW_RESTORE)
While winexists($title)
sleep(10)
Wend
winclose($title)
winclose("Cannot find server")
FileDelete($file)

AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

Thats works fine, thanks :whistle:

It's a litte more work and needs some adjustment for some special cases but it's great, thanks.

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