KaFu Posted October 27, 2012 Share Posted October 27, 2012 Thanks for the quick response ... 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...
KaFu Posted October 28, 2012 Share Posted October 28, 2012 One more question. From time to time I receive this error message when I shut down my program: "R6016 - not enough space for thread data" http://support.microsoft.com/kb/126709/en-us And I "think" it started when I've implemented your UDF. Might this be related to your ASM calls? 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 28, 2012 Author Share Posted October 28, 2012 One more question. From time to time I receive this error message when I shut down my program:"R6016 - not enough space for thread data"http://support.microsoft.com/kb/126709/en-usAnd I "think" it started when I've implemented your UDF. Might this be related to your ASM calls?As far as I know that's impossible for the GIF UDF to cause. Does your app Run() something? Do you use msvcrt.dll? Both of those are more likely to cause the issue you describe. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
KaFu Posted October 28, 2012 Share Posted October 28, 2012 Thanks for the reply. Yes, I use "msvcrt.dll" in that program... well, if I look at the "Resolution" in the article, there seems to be nothing I can do about it (?), at least not clear to me. 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 28, 2012 Author Share Posted October 28, 2012 Don't use msvcrt.dll. That's lame anyway. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Gianni Posted February 20, 2014 Share Posted February 20, 2014 Is it possible to pass in some way to the _GUICtrlCreateGIF function a handle to an HBITMAP instead of a filename or a resource? for example I would like to pass the handler returned by the _ScreenCapture_Capture function used without filename. (I have seen that if I save to file a portion of captured screen then I can pass that file to _GUICtrlCreateGIF, but I had not success trying to pass handler instead) thanks Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
KnutJ Posted March 19, 2014 Share Posted March 19, 2014 Had the need to be able to animate a .gif, did a quick search, found this, is working great. thank you trancexx Link to comment Share on other sites More sharing options...
johanser Posted August 28, 2014 Share Posted August 28, 2014 (edited) @tracexx 'GIFAnimations.au3' cool project please tell me how to convert a gif image into binary code ? http://prntscr.com/4h9bjl image.gif into --> Func _LOGOBin() Local $FileName = "0x474946383961B400B400F7FF00B591DBC2C2C2DAEDFFCEE7FF7DA9FFB3CCE6999999B3B3CCB2CCCCB692B6E9E9E96699CC666666DDDDDDCFADCFF9F9" $FileName &= "F9F5F5F5ECD9ECAAAAE69393DBE3F1F1336599E1E1F14B787866336655AAAA67678ED1D1D2333366A3C2E1BBBBBB4A77A5A4A4C25C85ADCECEFFF2F2" bla bla bla.... code Edited August 28, 2014 by johanser Link to comment Share on other sites More sharing options...
johanser Posted August 28, 2014 Share Posted August 28, 2014 i found it 'solution' ----- '?do=embed' frameborder='0' data-embedContent>> hahaha.... thx Link to comment Share on other sites More sharing options...
johanser Posted August 28, 2014 Share Posted August 28, 2014 holy sh*t , i must wait for an hour ;;; converting my gif image into binary code. i guess i should wait forever. lol Link to comment Share on other sites More sharing options...
Gianni Posted August 28, 2014 Share Posted August 28, 2014 Hi johanser you could give a try to Wakillon's >BinaryToAu3Kompressor with it you can create the code of the compressed gif and then copy only the binary data and _Base64Decode function from the generated list to your script here a simple example: expandcollapse popup#AutoIt3Wrapper_Au3Check_Parameters=-w 1 -w 2 -w 3 -w 4 -w 5 -w 6 ;.......script written by trancexx (trancexx at yahoo dot com) #include <WindowsConstants.au3> #include <WinAPI.au3> #include "GIFAnimation.au3" ; following code grabbed from Wakillon's BinaryToAu3Kompressor generated code ------ Global $sFile = "R0lGODlh+ACzAPMAAP///3NaWhgQEFIxMa2ce/e9KcbGnMDAwP/W5/+Mre97nP8IUv+Epf+MpdZrhAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/h1HaWZCdWlsZGVyIDAuNSBieSBZdmVzIFBpZ3VldAAh+QQJyAAHACwAAAAA+ACzAAAE/vDISau9OOvNu/9gKI5kaZ5oqq5s675wLM90bd94ru987//AoHBILBqPyKRyyWw6n9CodEqtWq/YrHbL7Xq/4LB4TC6bz+i0es1uu9/wuHxOr9vv+Lx+z+/7/4CBgoOEhYaHiImKi4yNjo+QkZKTlJWWl5iZmpucnZ6foKGio6Slpqeoqao7BAQGq2kBDwICBLBmAw8BCbm2t2K5uwkOs6+/X7LCCby6x16yusvL0MbOWQS6AwPSww/N1lkC2wMC3AneAtXgVLIOCQECCtwC3r7rU9jCDgLu0gOyA+5RoSUvgQJ+8xyQEyglWcJ5AWTZY8jEAC1zA/otExCAWACK/U4cchtQcNm/BOJANiFoTplJd9pULsln7p05B/LgqZNZJFfJmjXhT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6T7BRbVi6l7BkKGt60bu7I7u7Rbu7Z7u7ibu7q7u7zbu777u8AbvIsQAQA7" $sFile = Binary ( _Base64Decode ( $sFile ) ) Func _Base64Decode ( $input_string ) ; by trancexx Local $struct = DllStructCreate ( 'int' ) Local $a_Call = DllCall ( 'Crypt32.dll', 'int', 'CryptStringToBinary', 'str', $input_string, 'int', 0, 'int', 1, 'ptr', 0, 'ptr', DllStructGetPtr ( $struct, 1 ), 'ptr', 0, 'ptr', 0 ) If @error Or Not $a_Call[0] Then Return SetError ( 1, 0, '' ) Local $a = DllStructCreate ( 'byte[' & DllStructGetData ( $struct, 1) & ']' ) $a_Call = DllCall ( 'Crypt32.dll', 'int', 'CryptStringToBinary', 'str', $input_string, 'int', 0, 'int', 1, 'ptr', DllStructGetPtr ( $a ), 'ptr', DllStructGetPtr ( $struct, 1 ), 'ptr', 0, 'ptr', 0 ) If @error Or Not $a_Call[0] Then Return SetError ( 2, 0, '' ) Return DllStructGetData ( $a, 1 ) EndFunc ;==> _Base64Decode () ; ------ end of grabbed code ------- Opt("GUICloseOnESC", 1); ESC to exit Opt("MustDeclareVars", 1) #cs Global $sTempFolder = @TempDir & "\GIFS" DirCreate($sTempFolder) Global $sFile = $sTempFolder & "\Dance.gif" If Not FileExists($sFile) Then TrayTip("GIF Download", "Please wait...", 0) InetGet("http://i241.photobucket.com/albums/ff141/trancexx_bucket/Dance.gif", $sFile) TrayTip("", "", 0) EndIf If Not FileExists($sFile) Then MsgBox(262192, "Download", "Download failed!") Exit EndIf #ce ; Get dimension of the GIF Global $aGIFDimension = _GIF_GetDimension($sFile) ; Make GUI Global $hGui = GUICreate("GIF Animation", $aGIFDimension[0], $aGIFDimension[1], -1, -1, $WS_POPUP, BitOR($WS_EX_LAYERED, $WS_EX_TOPMOST)) ; GIF job Global $hGIF = _GUICtrlCreateGIF($sFile, "", 0, 0) GUICtrlSetTip(-1, "ESC to exit") ; Make GUI transparent GUISetBkColor(345) ; some random color _WinAPI_SetLayeredWindowAttributes($hGui, 345, 255) ; making the GUI transparent _WinAPI_SetParent($hGui, 0) ; Show it GUISetState() ; Loop till end While 1 If GUIGetMsg() = - 3 Then Exit WEnd Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
Elzie Posted November 27, 2014 Share Posted November 27, 2014 Hi I get this ( error: can't open include file "GIFAnimation.au3".) when i try to run your script. Not sure why I have version 3.3.13.19 thanks for your help. elzie Link to comment Share on other sites More sharing options...
Gianni Posted November 27, 2014 Share Posted November 27, 2014 Hi I get this ( error: can't open include file "GIFAnimation.au3".) when i try to run your script. Not sure why I have version 3.3.13.19 thanks for your help. elzie You have to download the file "GIFAnimation.au3" and save it to the same path of your script. It's included in the GIFAnimation_2.1.2.zip file along with some nice examples. Download it from the link provided in the >first post indicated by the sentence "Download from here if you want to impress chicks: http://code.google.com/p/gif-animation/downloads/list" Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
Elzie Posted November 27, 2014 Share Posted November 27, 2014 Thanks very much. Elzie Link to comment Share on other sites More sharing options...
Gianni Posted November 27, 2014 Share Posted November 27, 2014 Thanks very much. Elzie you are welcome Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
seres Posted April 19, 2016 Share Posted April 19, 2016 On 6/3/2009 at 3:38 PM, trancexx said: No it doesn't speak, I lied. That is impossible. It's about setting animated GIF (and every other type of images) to a GUI control. How is this done for animated GIF? Few simple steps: - created ImageList of GIF Bitmaps retrieved from gif file/resource - created Pic control - every now and then another image is displayed. This is determined by frame delay time - see gif specification somewhere. That's it. All that takes time and could potentially block our gui/script. That's why flying assembly is used. Animation is done in another thread different from one AutoIt's code is executed in. Nothing stops animation but you. Animation works both for x64 and x86. Also it works for all kind of images not only GIFs. That means you can use it to display PNGs, BMPs, JPGs, etc... All of them from resources too. Example: expandcollapse popup#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include "GIFAnimation.au3" Opt("MustDeclareVars", 1) ; Start by choosing GIF to display Global $sFile = FileOpenDialog("Choose Image", "", "(*.gif;*.png;*.jpg;*.tiff;*.bmp;*.jpeg)", -1, "") If @error Then Exit ; Make GUI Global $hGui = GUICreate("GIF Animation", 500, 500, -1, -1, $WS_OVERLAPPEDWINDOW) ; Add some buttons Global $hButton = GUICtrlCreateButton("&Pause animation", 50, 450, 100, 25) Global $hButton1 = GUICtrlCreateButton("&Delete Control", 200, 450, 100, 25) Global $hButton2 = GUICtrlCreateButton("&Open Image", 350, 450, 100, 25) ; Make GIF Control Global $hGIF = _GUICtrlCreateGIF($sFile, "", 10, 10) If @extended Then GUICtrlSetState($hButton, $GUI_DISABLE) GUICtrlSetTip($hGIF, "Image") ; Additional processing of some windows messages (for example) GUIRegisterMsg(133, "_Refresh") ; WM_NCPAINT GUIRegisterMsg(15, "_ValidateGIFs") ; WM_PAINT Global $iPlay = 1 ; Show it GUISetState() ; Loop till end While 1 Switch GUIGetMsg() Case -3 Exit Case $hButton If $iPlay Then If _GIF_PauseAnimation($hGIF) Then $iPlay = 0 GUICtrlSetData($hButton, "Resume animation") EndIf Else If _GIF_ResumeAnimation($hGIF) Then $iPlay = 1 GUICtrlSetData($hButton, "Pause animation") EndIf EndIf Case $hButton1 _GIF_DeleteGIF($hGIF) Case $hButton2 $sFile = FileOpenDialog("Choose gif", "", "(*.gif;*.png;*.jpg;*.tiff;*.bmp;*.jpeg)", -1, "", $hGui) If Not @error Then _GIF_DeleteGIF($hGIF); delete previous $hGIF = _GUICtrlCreateGIF($sFile, "", 10, 10) If @extended Then GUICtrlSetState($hButton, $GUI_DISABLE) Else GUICtrlSetState($hButton, $GUI_ENABLE) EndIf GUICtrlSetTip($hGIF, "Image") $iPlay = 1 GUICtrlSetData($hButton, "Pause animation") EndIf EndSwitch WEnd Func _Refresh($hWnd, $iMsg, $wParam, $lParam) #forceref $hWnd, $iMsg, $wParam, $lParam _GIF_RefreshGIF($hGIF) EndFunc ;==>_Refresh Func _ValidateGIFs($hWnd, $iMsg, $wParam, $lParam) #forceref $hWnd, $iMsg, $wParam, $lParam _GIF_ValidateGIF($hGIF) EndFunc ;==>_ValidateGIFs It should be 0% cpu. Download from here if you want to impress chicks: http://code.google.com/p/gif-animation/downloads/list There are 8 examples in there. GIF files are downloaded automatically if some example script needs it. Mostly from photobucket.com. Some examples work without classic download. Required data is get with InetRead(). That's mighty cool. So, download, open ZIP, grab folder inside and place it where you want. Run examples and that's it. Word or two about main function, _GUICtrlCreateGIF(). It can handle all sorts of input. Will display Images that are passed as binary, resource identifiers, strings, file names, ... everything. If it's valid image all works. For example, all this is valid: ; Pass GIF File path/name _GUICtrlCreateGIF("Some.gif", "", 10, 10) ; Binary data _GUICtrlCreateGIF($bGIF, "", 10, 10,) ; PE Resource (file GIF.dll, Type: GIF, Name: 4) _GUICtrlCreateGIF("GIF.dll", "GIF;4", 10, 10, 100, 120) ; PE Resource (file @AutoItExe, Type: RES, Name: BLAH, Language: 1033) _GUICtrlCreateGIF(@AutoItExe, "RES;BLAH;1033", 10, 10) ; PE Resource (file "explorer.exe", Type: 2, Name: 6801) _GUICtrlCreateGIF("explorer.exe", "2;6801", 10, 10) ;<- BITMAP ; PE Resource (file @AutoItExe, Type: RC_DATA, Name: PNG) _GUICtrlCreateGIF(@AutoItExe, "10;PNG", 10, 10) ; GIF string _GUICtrlCreateGIF(FileRead("Some.gif"), "", 10, 10) ____________________________________________ WOWWWWW you are incredible O.O i was doing something like this then i found your job, it really help me thanks a lot you are amazing Link to comment Share on other sites More sharing options...
ahmeddzcom Posted April 20, 2016 Share Posted April 20, 2016 Nice Work ... THanks Link to comment Share on other sites More sharing options...
Mbee Posted June 4, 2016 Share Posted June 4, 2016 (edited) Hey, trancexx, thanks enormously for this mind-bogglingly great UDF! Until I found this, I had given up hope of displaying animated gifs. Unfortunately, I have a problem I need help with. Believe me, I'm one of those who will spend days trying to figure stuff out on my own, but now I'm finally stumped. Here's my problem: I want to use your UDF to display images, but often I need to resize/scale the images to fit in the rectangle I have in my GUI. Although it appears to be an internal function in your UDF, I'd like to be able to use your _GIF_ResizeBitmap() func for that. But it requires one form of bitmap, and I don't know how to get/create/load the proper type of bitmap from an image. I can see from reading the code in your UDF, there's an undocumented ability to pass some kind of binary data as the first parameter to _GUICtrlCreateGIF() and _GUICtrlSetGIF(), instead of passing a file path. But what the hollerin' heck does that binary parameter have to look like? Is it a regular bitmap, such as produced by _GDIPlus_ImageGetGraphicsContext()? It doesn't seem to be, but I could be doing much wrong in my first hesitant steps down this GDI+/graphic manipulation road (and yes, I've read a few GDI+ tutorials and some examples on the forum here). Now, I'm the first to admit that all this GDI+ stuff is brand new to me, and if I said I grasped it all, I would be a liar. But I'm tryin' like crazy. Would you please be so kind as to help me out here? Thanks! Edited June 4, 2016 by Mbee Revised after trying other approaches Link to comment Share on other sites More sharing options...
Mbee Posted June 5, 2016 Share Posted June 5, 2016 Well, I've spent quite a bit of time now reading and re-reading about the GDIPlus functions (Microsoft as well as AutoIt info) as well as your code, trancexx, and I've made a lot of progress. But I'm still stumped! My last major rewrite was to try to pass a Scan0 pointer to _GUICtrlCreateGIF() instead of a file path (and your code does permit some binary data to be passed instead of a file path), but it hates that too! Aargh! Link to comment Share on other sites More sharing options...
junkew Posted June 5, 2016 Share Posted June 5, 2016 see FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets 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