happytc Posted September 14, 2011 Share Posted September 14, 2011 (edited) Do you have any GIF that it doesn't work for? Another animated GIF doesnot work : http://s1.directupload.net/file/d/2647/nagze5yw_gif.htmBut this gif can be shown using Irfanview or any other image viewers: ACDSee, XnView... Using the example on post #1, only blank! see following screenshot Edited September 14, 2011 by happytc Link to comment Share on other sites More sharing options...
UEZ Posted September 14, 2011 Share Posted September 14, 2011 I can see the animation properly! 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
happytc Posted September 14, 2011 Share Posted September 14, 2011 I can see the animation properly! Br,UEZWhat's your operation system? My system is WinXP-SP3 Link to comment Share on other sites More sharing options...
UEZ Posted September 14, 2011 Share Posted September 14, 2011 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
taietel Posted September 14, 2011 Share Posted September 14, 2011 Your gif looks like it has only one frame, according to this:I'm on XP sp3. Things you should know first...In the beginning there was only ONE! And zero... Progs: Create PDF(TXT2PDF,IMG2PDF) 3D Bar Graph DeskGadget Menu INI Photo Mosaic 3D Text Link to comment Share on other sites More sharing options...
happytc Posted September 14, 2011 Share Posted September 14, 2011 Your gif looks like it has only one frame, according to this:I'm on XP sp3. No, you got wrong info, this GIF file has 5 frames, see: http://min.us/mK6n4rrMr Link to comment Share on other sites More sharing options...
taietel Posted September 14, 2011 Share Posted September 14, 2011 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. Things you should know first...In the beginning there was only ONE! And zero... Progs: Create PDF(TXT2PDF,IMG2PDF) 3D Bar Graph DeskGadget Menu INI Photo Mosaic 3D Text Link to comment Share on other sites More sharing options...
happytc Posted September 14, 2011 Share Posted September 14, 2011 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. Link to comment Share on other sites More sharing options...
happytc Posted September 14, 2011 Share Posted September 14, 2011 (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 September 14, 2011 by happytc Link to comment Share on other sites More sharing options...
BrewManNH Posted September 15, 2011 Share Posted September 15, 2011 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 GudeHow 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 Link to comment Share on other sites More sharing options...
trancexx Posted September 15, 2011 Author Share Posted September 15, 2011 Anyway, I'm using GDIP to process GIFs. If the GIF is not supported by this engine then... nothing. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Belini Posted May 8, 2012 Share Posted May 8, 2012 Excellent UDF @ Trancexx, will be very helpful to me. My Codes: Virtual Key Code UDF: http://www.autoitscript.com/forum/topic/138246-virtual-key-code-udf/ GuiSplashTextOn.au3: http://www.autoitscript.com/forum/topic/143542-guisplashtexton-udf/ Menu versions of Autoit: http://www.autoitscript.com/forum/topic/137435-menu-versions-of-autoit/#entry962011 Selects first folder of letters: ]http://www.autoitscript.com/forum/topic/144780-select-folders-by-letter/#entry1021708/spoiler] List files and folders with long addresses.: http://www.autoitscript.com/forum/topic/144910-list-files-and-folders-with-long-addresses/#entry102 2926 Program JUKEBOX made in Autoit:some functions:http://www.youtube.com/watch?v=WJ2tC2fD5Qs Navigation to search:http://www.youtube.com/watch?v=lblwOFIbgtQ Link to comment Share on other sites More sharing options...
Syed23 Posted June 10, 2012 Share Posted June 10, 2012 (edited) Hi, This is an awesome UDF which helps me in most situations. Is there anyway to HIDE and SHOW the GIF process? Edited June 10, 2012 by Syed23 Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font] Link to comment Share on other sites More sharing options...
Kyan Posted October 16, 2012 Share Posted October 16, 2012 thanks trancexx nice UDF, don't need to use GDI+ and Load_BMP_From_Mem() to load my binary images 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 Link to comment Share on other sites More sharing options...
KaFu Posted October 17, 2012 Share Posted October 17, 2012 Really nice UDF . In the UDF itself there are two occurences whereLocal $aOut = [0, 0] ; preset outputshould beLocal $aOut[2] = [0, 0] ; preset output OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
ludoo Posted October 18, 2012 Share Posted October 18, 2012 (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 October 18, 2012 by ludoo Link to comment Share on other sites More sharing options...
trancexx Posted October 18, 2012 Author Share Posted October 18, 2012 You have the answer one post above yours. It's the syntax for the new version of AutoIt. I forgot that it's not released publicly. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
ludoo Posted October 19, 2012 Share Posted October 19, 2012 (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 October 19, 2012 by ludoo Link to comment Share on other sites More sharing options...
KaFu Posted October 27, 2012 Share Posted October 27, 2012 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 OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
trancexx Posted October 27, 2012 Author Share Posted October 27, 2012 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?RegardsHey 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now