Jump to content

Recommended Posts

Posted

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.

Posted (edited)

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
Posted

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

  • 7 months later...
  • 1 month later...
Posted (edited)

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]

  • 4 months later...
Posted

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

Posted (edited)

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
Posted (edited)

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
  • 2 weeks later...
Posted

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

Posted

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

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