wolf9228 Posted March 25, 2009 Share Posted March 25, 2009 (edited) expandcollapse popup#include <GuiConstantsEx.au3> #include <WindowsConstants.au3> Opt("OnExitFunc", "_Exit") Global $DllOpen = DllOpen("Animated_Gif_Library.dll") $hGUI = GUICreate("GDI+", 600, 100) GUISetState() $hBitmap1 = GdipLoadImageFromFile( "world2.gif") AnimatedGif( $hBitmap1 ,$hGUI, 0, 0) $hBitmap2 = GdipLoadImageFromFile( "alladdin.gif") AnimatedGif( $hBitmap2 ,$hGUI, 100, 0) $hBitmap2 = GdipLoadImageFromFile( "clogo.gif") AnimatedGif( $hBitmap2 ,$hGUI, 200, 0) $hBitmap2 = GdipLoadImageFromFile( "elephnt2.gif") AnimatedGif( $hBitmap2 ,$hGUI, 300, 0) $hBitmap2 = GdipLoadImageFromFile( "Elephnt1.gif") AnimatedGif( $hBitmap2 ,$hGUI, 400, 0) Do Until GUIGetMsg() = $GUI_EVENT_CLOSE Func GdipLoadImageFromFile( _ $filename = 0 , $image = 0 ) $DllCall = DllCall($DllOpen , "int:cdecl" , "GdipLoadImageFromFile" , _ "wstr" , $filename , "int*" , $image ) Return SetError ( $DllCall[0], 0 , $DllCall[UBound($DllCall)- 1]) EndFunc Func AnimatedGif( _ $hBitmap = 0 , $Whwnd = 0 , $X = 0 , $Y = 0 ) $DllCall = DllCall($DllOpen , "int:cdecl" , "AnimatedGif" , _ "hwnd" , $hBitmap, "hwnd" ,$Whwnd, "int" , $X , "int" , $Y ) Return SetError ( $DllCall[0], 0 , $DllCall[UBound($DllCall)- 1]) EndFunc Func PauseAnimatedGif($hBitmap , $Bool) $DllCall = DllCall($DllOpen , "int:cdecl" , "PauseAnimatedGif" , _ "hwnd" , $hBitmap, "int" ,$Bool) Return SetError ( $DllCall[0], 0 , $DllCall[UBound($DllCall)- 1]) EndFunc Func GplusShutdown() $DllCall = DllCall($DllOpen , "int:cdecl" , "GplusShutdown") Return SetError ( $DllCall[0], 0 , $DllCall[UBound($DllCall)- 1]) EndFunc Func _Exit() GplusShutdown() DllClose($DllOpen) EndFunc Edited March 25, 2009 by wolf9228 صرح السماء كان هنا Link to comment Share on other sites More sharing options...
UEZ Posted March 25, 2009 Share Posted March 25, 2009 expandcollapse popup#include <GuiConstantsEx.au3> #include <WindowsConstants.au3> Opt("OnExitFunc", "_Exit") Global $DllOpen = DllOpen("Animated_Gif_Library.dll") $hGUI = GUICreate("GDI+", 600, 100) GUISetState() $hBitmap1 = GdipLoadImageFromFile( "world2.gif") AnimatedGif( $hBitmap1 ,$hGUI, 0, 0) $hBitmap2 = GdipLoadImageFromFile( "alladdin.gif") AnimatedGif( $hBitmap2 ,$hGUI, 100, 0) $hBitmap2 = GdipLoadImageFromFile( "clogo.gif") AnimatedGif( $hBitmap2 ,$hGUI, 200, 0) $hBitmap2 = GdipLoadImageFromFile( "elephnt2.gif") AnimatedGif( $hBitmap2 ,$hGUI, 300, 0) $hBitmap2 = GdipLoadImageFromFile( "Elephnt1.gif") AnimatedGif( $hBitmap2 ,$hGUI, 400, 0) Do Until GUIGetMsg() = $GUI_EVENT_CLOSE Func GdipLoadImageFromFile( _ $filename = 0 , $image = 0 ) $DllCall = DllCall($DllOpen , "int:cdecl" , "GdipLoadImageFromFile" , _ "wstr" , $filename , "int*" , $image ) Return SetError ( $DllCall[0], 0 , $DllCall[UBound($DllCall)- 1]) EndFunc Func AnimatedGif( _ $hBitmap = 0 , $Whwnd = 0 , $X = 0 , $Y = 0 ) $DllCall = DllCall($DllOpen , "int:cdecl" , "AnimatedGif" , _ "hwnd" , $hBitmap, "hwnd" ,$Whwnd, "int" , $X , "int" , $Y ) Return SetError ( $DllCall[0], 0 , $DllCall[UBound($DllCall)- 1]) EndFunc Func PauseAnimatedGif($hBitmap , $Bool) $DllCall = DllCall($DllOpen , "int:cdecl" , "PauseAnimatedGif" , _ "hwnd" , $hBitmap, "int" ,$Bool) Return SetError ( $DllCall[0], 0 , $DllCall[UBound($DllCall)- 1]) EndFunc Func GplusShutdown() $DllCall = DllCall($DllOpen , "int:cdecl" , "GplusShutdown") Return SetError ( $DllCall[0], 0 , $DllCall[UBound($DllCall)- 1]) EndFunc Func _Exit() GplusShutdown() DllClose($DllOpen) EndFunc When I try to run the script, AutoIT is crashing: !>13:11:02 AutoIT3.exe ended.rc:-1073741819 Btw, your are quite silent with the description of your work! 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...
youknowwho4eva Posted March 25, 2009 Share Posted March 25, 2009 I didn't get any errors... No animated gifs, just stationary pics Giggity Link to comment Share on other sites More sharing options...
wolf9228 Posted March 25, 2009 Author Share Posted March 25, 2009 When I try to run the script, AutoIT is crashing: !>13:11:02 AutoIT3.exe ended.rc:-1073741819Btw, your are quite silent with the description of your work!UEZhttp://translate.google.com/I can not write in EnglishBut I can understand the words writtenTry this version of the libraryThank you صرح السماء كان هنا Link to comment Share on other sites More sharing options...
wolf9228 Posted March 25, 2009 Author Share Posted March 25, 2009 I didn't get any errors... No animated gifs, just stationary picsThank you صرح السماء كان هنا Link to comment Share on other sites More sharing options...
UEZ Posted March 25, 2009 Share Posted March 25, 2009 http://translate.google.com/I can not write in EnglishBut I can understand the words writtenTry this version of the libraryThank youSame crash again:>Running:(3.3.0.0):C:\Program Files\AutoIt3\autoit3.exe "D:\Coding\AU3\GFX\GDI\Animated GIF\Animated_Gif.au3" !>21:00:28 AutoIT3.exe ended.rc:-1073741819+>21:00:29 AutoIt3Wrapper Finished>Exit code: -1073741819 Time: 4.098 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...
gseller Posted March 25, 2009 Share Posted March 25, 2009 Works Great for me. Nice work! I know I will use it in many scripts. Thank You for sharing. Link to comment Share on other sites More sharing options...
yehia Posted March 25, 2009 Share Posted March 25, 2009 not animated for me ... strange My Scripts:IE New UDFsElastic images moving under mouse (with a happy valentine's example)_FileRemoveLine Link to comment Share on other sites More sharing options...
UEZ Posted March 25, 2009 Share Posted March 25, 2009 (edited) Mmmmhhh, I'm using Vista x32 and AutoIt v3.3.0.0 and it is crashing when I'm starting it. Strange, that I'm the only one with the crash ... UEZ Edited March 25, 2009 by 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...
Yashied Posted March 26, 2009 Share Posted March 26, 2009 (edited) Don`t work for me. (Windows XP SP2) It is a pity. Edited March 26, 2009 by Yashied My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
youknowwho4eva Posted March 26, 2009 Share Posted March 26, 2009 Thank youIs that the intended function? Just stationary pictures of the gifs? Giggity Link to comment Share on other sites More sharing options...
ptrex Posted March 27, 2009 Share Posted March 27, 2009 @wolf9228 Works fine for me XP and latest Beta. Nice job !! Regards ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
yehia Posted March 27, 2009 Share Posted March 27, 2009 i guess this dont work on xp sp2 My Scripts:IE New UDFsElastic images moving under mouse (with a happy valentine's example)_FileRemoveLine Link to comment Share on other sites More sharing options...
gseller Posted March 28, 2009 Share Posted March 28, 2009 Works fine for me on XP SP2.. Link to comment Share on other sites More sharing options...
AlmarM Posted March 28, 2009 Share Posted March 28, 2009 It works for me, nice! AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
ProgAndy Posted March 28, 2009 Share Posted March 28, 2009 (edited) doesn't work for me (XP SP3+VistMizer): just static images and invisible after i minimized the window. Edited March 28, 2009 by ProgAndy *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes 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