Jump to content
trancexx

GIF Animation

Recommended Posts

Tested on Win7 x64 and I can see the animation. On my vm WinXP no animation can be seen!

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

It's XP's fault. Try to see the properties of that image and I'm sure that you will get the same results (on XP sp3). I don't know why XP do that... Regarding XP, I had some problems when tried to clone an image in XP; in Windows 7 was OK, but in XP the handle was 0. Solved by locking pixels.

Share this post


Link to post
Share on other sites

is there two types of animation GIF?

http://minus.com/moqEeLR7t

bb.gif was converted by Ulead_Gif software from aa.gif

then bb.gif worked.

Share this post


Link to post
Share on other sites

It's XP's fault. Try to see the properties of that image and I'm sure that you will get the same results (on XP sp3). I don't know why XP do that... Regarding XP, I had some problems when tried to clone an image in XP; in Windows 7 was OK, but in XP the handle was 0. Solved by locking pixels.

Yes, I have see the properties of that image through clicking right key. It's only one frame.

But why all image viewers can show the animation rightly? There's some method to deal with it for sure in XP

Edited by happytc

Share this post


Link to post
Share on other sites

I tried viewing that image in Windows 7 and couldn't see the animation, on my XP machine I can see it, but only in the web browser not when I save it to the machine. So, I'm not so sure it's an XP problem.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

Hi,

This is an awesome UDF which helps me in most situations. Is there anyway to HIDE and SHOW the GIF process?

Edited by Syed23

Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font]

Share this post


Link to post
Share on other sites

thanks trancexx

nice UDF, don't need to use GDI+ and Load_BMP_From_Mem() to load my binary images :D


Heroes, there is no such thing

One day I'll discover what IE.au3 has of special for so many users using it.
C'mon there's InetRead and WinHTTP, way better
happy.png

Share this post


Link to post
Share on other sites

Really nice UDF :).

In the UDF itself there are two occurences where

Local $aOut = [0, 0] ; preset output

should be

Local $aOut[2] = [0, 0] ; preset output

Share this post


Link to post
Share on other sites

Hi,

thank you for sharing :)

Question this UDF allows you to display an animated gif in a window and control it?

I get an error when I run an example:

here is the example:

; Pass GIF File path/name
_GUICtrlCreateGIF("wait.gif", "", 10, 10)

Here is the error:

C:Program Files (x86)AutoIt3IncludeGIFAnimation.au3(172,16) : ERROR: syntax error

Local $aOut = [

~~~~~~~~~~~~~~^

C:\Program Files (x86)\AutoIt3\Include\GIFAnimation.au3(51,40) : ERROR: _GIF_GetGIFAssoc(): undefined function.

Local $pGIF = _GIF_GetGIFAssoc($iGIFId)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files (x86)\AutoIt3\Include\GIFAnimation.au3(63,32) : ERROR: _GIF_ResumeThread(): undefined function.

_GIF_ResumeThread($hGIFThread)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files (x86)\AutoIt3\Include\GIFAnimation.au3(67,39) : ERROR: _GIF_WaitForSingleObject(): undefined function.

_GIF_WaitForSingleObject($hGIFThread)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files (x86)\AutoIt3\Include\GIFAnimation.au3(68,31) : ERROR: _GIF_CloseHandle(): undefined function.

_GIF_CloseHandle($hGIFThread)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files (x86)\AutoIt3\Include\GIFAnimation.au3(72,54) : ERROR: _GIF_MemGlobalFree(): undefined function.

If $pCodeBuffer Then _GIF_MemGlobalFree($pCodeBuffer)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files (x86)\AutoIt3\Include\GIFAnimation.au3(75,56) : ERROR: _GIF_ImageList_Destroy(): undefined function.

If $hImageList Then _GIF_ImageList_Destroy($hImageList)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files (x86)\AutoIt3\Include\GIFAnimation.au3(79,54) : ERROR: _GIF_DeleteObject(): undefined function.

_GIF_DeleteObject(GUICtrlSendMsg($iGIFId, 370, 0, 0))

thank you for your help Edited by ludoo

Share this post


Link to post
Share on other sites

ok , after changing the code, I get the same error message.

I use autoit Version 3.3.8.1

ok, this is good , , more error

Edited by ludoo

Share this post


Link to post
Share on other sites

Hi Lady :),

one question regarding the great UDF. At the end of the _GUICtrlCreateGIF() function you make this call:

_GIF_InvalidateRect(_GIF_GetParent($hControl))

This caused my parent window to flicker when I used _GUICtrlSetGIF() to replace a GIF. When I commented it out, for me everything still looks good, so is this call really necessary?

Regards

Share this post


Link to post
Share on other sites

Hi Lady :),

one question regarding the great UDF. At the end of the _GUICtrlCreateGIF() function you make this call:

_GIF_InvalidateRect(_GIF_GetParent($hControl))

This caused my parent window to flicker when I used _GUICtrlSetGIF() to replace a GIF. When I commented it out, for me everything still looks good, so is this call really necessary?

Regards

Hey Mister. No it's not necessary.

I have version of this UDF with all possible explanations made during the original development but it's on some old drive that I don't use any more. I remember having some reason for that line of code, but I'm sure it was nothing super important.


♡♡♡

.

eMyvnE

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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...