Sign in to follow this  
Followers 0
keilamym

animating a gif help..

4 posts in this topic

im trying to test animating a simple gif file... the .gif comes up but it doesn't move and im not sure what I did wrong.. any assistance is appreciated.

#AutoIt3Wrapper_Res_File_Add=C:\temp\arrow_logo.gif, rt_rcdata, TEST_JPG_1

#include "resources.au3"
$arrow_logo = "C:\temp\arrow_logo.gif"
$gui = GUICreate("Data from resources simple example 1",400,150)
$pic1 = GUICtrlCreatePic($arrow_logo,0,0,400,150)
_ResourceSetImageToCtrl($pic1, "TEST_JPG_1") ; set JPG image to picture control from resource
GUISetState(@SW_SHOW)

While 1
 If GUIGetMsg() = -3 Then Exit
WEnd

I looks pretty simple but cant get it to work. I im on Win8.1, IE11 and using the newest autoit version.

Share this post


Link to post
Share on other sites



have a look >here


small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Share this post


Link to post
Share on other sites

Yes, I would do that too. In case of using the other UDF it would be something like this:

#include "GIFAnimation.au3"

$gui = GUICreate("Data from resources simple example 1", 400, 150)
$pic1 = _GUICtrlCreateGIF(@AutoItExe, "10;TEST_JPG_1", 0, 0, 400, 150)

GUISetState(@SW_SHOW)

While 1
    If GUIGetMsg() = -3 Then Exit
WEnd

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Thanks... ill try it when I get home.. appreciate your help..

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