Jump to content

Animated Gif in GUI


Dejan
 Share

Recommended Posts

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]
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...