Jump to content

animating a gif help..


 Share

Recommended Posts

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.

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

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...