Jump to content
Sign in to follow this  
Dejan

Animated Gif in GUI

Recommended Posts

Dejan

can you tell me how can i use a animated GIF into my gui? i tried to use GuiCtrlCreateGraphic() and GuiCtrlCreatePic() but the Gif is not moving and animating.

i got this:

By default AutoIt doesn't support animated GIF's. Though somebody posted a UDF to play them in the 'Example Scripts' forum. Try a search=)

what is the name of UDF to search for?

anyone please provide more info about it.


[font="Comic Sans MS"]In Barishon se dosti acchi nahin Faraz, Kaccha tera makan hai kucch to khayal Ker.[/font]

Share this post


Link to post
Share on other sites
monoceres

Press search->advanced search

Select to search only in example scripts

Mark search titles only

Search for GIF.

The first result is an excellent example by smashly ;)


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites
Dejan

@ monocers

thanks for your help bro...


[font="Comic Sans MS"]In Barishon se dosti acchi nahin Faraz, Kaccha tera makan hai kucch to khayal Ker.[/font]

Share this post


Link to post
Share on other sites
PsaltyDS

You can also play it in an embedded IE control:

#Include <IE.au3>

$sGIF = "C:\Temp\GIFs\Your.gif"

$hGui = GUICreate("Test", 400, 300)
$oIE = _IECreateEmbedded()
GUICtrlCreateObj($oIE, 10, 10, 380, 280)

_IENavigate($oIE, $sGIF)
GUISetState()

Do
    Sleep(20)
Until GUIGetMsg() = -3

;)


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
Dejan

yes thanks for it. it is easy then any other. thanks again.


[font="Comic Sans MS"]In Barishon se dosti acchi nahin Faraz, Kaccha tera makan hai kucch to khayal Ker.[/font]

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  

×