Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Animated Gif in GUI


  • Please log in to reply
6 replies to this topic
Xx7
  • Members
  • 674 posts
  • Last active: Mar 24 2015 10:48 PM
  • Joined: 19 Apr 2011

Read Philho's thread... http://www.autohotke...our-gui/?hl=gif

 

But couldn't get it working.  Anybody have a simple example that they could share.  What do I do with the "AniGif.dll" file?

 

I get this error message:

TU1rq.png

 

 

Tried this script:

 

 

#SingleInstance, force


AniGif_CreateControl(_guiHwnd, _x, _y, _w, _h, _)
{
local hAniGif, agHwnd
local msg, style
static $bFirstCall := true


If ($bFirstCall)
{
$bFirstCall := false
hAniGif := DllCall("LoadLibrary", "Str", "AniGif.dll")
}


style := 0


style := 0x50000000 | style




agHwnd := DLLCall("CreateWindowEx"
, "UInt", 0                     ; Style, can be WS_EX_CLIENTEDGE = 0x200
, "Str", "AniGIF"               ; Class Name
, "Str", "AnimatedGif"          ; Window name
, "UInt",  style                ; Window style
, "Int", _x                     ; X position
, "Int", _y                     ; Y position
, "Int", _w                     ; Width
, "Int", _h                     ; Height
, "UInt", _guiHwnd              ; Handle of parent
, "UInt", 0                     ; Menu
, "UInt", 0               ; hInstance of the module registering the component's class
, "UInt", 0)                    ; User defined style


Return agHwnd


Return
}


AniGif_LoadGifFromFile(_agHwnd, _gifFile)
{
; WAGM_LOADGIFFROMFILE EQU WAGM_BASE+0 ;wParam:N/A, lParam:lpFileName
SendMessage 2024, 0, &_gifFile, , ahk_id %_agHwnd%
}


AniGif_UnloadGif(_agHwnd)
{
; WAGM_UNLOADGIF EQU WAGM_BASE+2 ;wParam:N/A, lParam:N/A
SendMessage 2026, 0, 0, , ahk_id %_agHwnd%
}


AniGif_SetBkColor(_agHwnd, _backColor)
{
; WAGM_SETBKCOLOR EQU WAGM_BASE+5 ;wParam:N/A, lParam:BkColor
PostMessage 2029, 0, _backColor, , ahk_id %_agHwnd%
}




Gui, 1: Margin, 0,0
Gui, 1: +LastFound 


Gui, 1: Color, 303030 
Gui, 1: +ToolWindow -Caption
Gui, 1: Show,x0 y0 w%A_ScreenWidth% h%A_ScreenHeight%


Gui, 2: default
Gui, 2: Color, 303030 
Gui, 2: +ToolWindow -Caption
Gui, 2: font, s18 C707070 w700, verdana
Gui, 2: Add, Text, w700 center vremaining ,






guiID := WinExist()


hAniGif1 := AniGif_CreateControl(guiID, 1, 1, 100, 100)


AniGif_LoadGifFromFile(hAniGif1, "C:\mygif1.gif")
AniGif_SetBkColor(hAniGif1, 0xefef)


;GuiControl, Move, MYPICVAR, x100 y200 ??????????




guicontrol,, remaining, Images remaining: %result%


Gui, 2: Show, xcenter ycenter


sleep 2000
exitapp

 

 

 

 

 

Was using Control_AniGif.ahk:

 

/*
Control_AniGif.ahk


Add a AniGif control to your AHK Gui.
AniGif by akyprian: http://www.winasm.net/forum/index.php?showtopic=279
From his source file:
;|AniGIF is a copyright of Antonis Kyprianou.                             |
;|                                                                        |
;|You can use AniGIF for NON commercial purposes provided you             |
;|have the following information on your application's about box:         |
;|AniGIF control is copyright of Antonis Kyprianou (http://www.winasm.net)|
;|                                                                        |
;|You need my WRITTEN permission to use AniGIF in commercial applications |


// by Philippe Lhoste <PhiLho(a)GMX.net> http://Phi.Lho.free.fr
// File/Project history:
 1.03.000 -- 2007/05/17 (PL) -- Total encapsulation.
 1.02.000 -- 2007/05/16 (PL) -- Changed functions names (thanks majkinetor), added more wrappers, freed correctly DLL.
 1.01.000 -- 2007/05/16 (PL) -- Update to 1.0.4.0 with WAGM_SETBKCOLOR.
 1.00.000 -- 2007/05/16 (PL) -- Creation.
*/
/* Copyright notice: For details, see the following file:
http://Phi.Lho.free.fr/softwares/PhiLhoSoft/PhiLhoSoftLicence.txt
This program is distributed under the zlib/libpng license.
Copyright (c) 2007 Philippe Lhoste / PhiLhoSoft
*/


/**
 * Control creation: you have to provide the ID of the GUI in which the control goes,
 * its position (_x, _y) and size (_w, _h) and optionally additional styles,
 * made of a string with keywords:
 * - autosize to make the control adapts to the Gif size
 * - center to center the Gif in the control
 * - hyperlink to allow clicking on the control and opening the URL defined later
 * Note that the required DLL is loaded automatically on first call.
 */
AniGif_CreateControl(_guiHwnd, _x, _y, _w, _h, _)
{
local hAniGif, agHwnd
local msg, style
static $bFirstCall := true


If ($bFirstCall)
{
$bFirstCall := false
; It will be unloaded at script end
hAniGif := DllCall("LoadLibrary", "Str", "AniGif.dll")
}


style := 0
If (_style != "")
{
If _style contains autosize
style |= 1 ; WAGS_AUTOSIZE
If _style contains center
style |= 2 ; WAGS_CENTER
If _style contains hyperlink
style |= 4 ; WAGS_HYPERLINK
}
; WS_CHILD | WS_VISIBLE
style := 0x50000000 | style


; http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/createwindowex.asp
agHwnd := DLLCall("CreateWindowEx"
, "UInt", 0                     ; Style, can be WS_EX_CLIENTEDGE = 0x200
, "Str", "AniGIF"               ; Class Name
, "Str", "AnimatedGif"          ; Window name
, "UInt",  style                ; Window style
, "Int", _x                     ; X position
, "Int", _y                     ; Y position
, "Int", _w                     ; Width
, "Int", _h                     ; Height
, "UInt", _guiHwnd              ; Handle of parent
, "UInt", 0                     ; Menu
, "UInt", 0               ; hInstance of the module registering the component's class
, "UInt", 0)                    ; User defined style
If (ErrorLevel != 0 or agHwnd = 0)
{
msg = %msg% Cannot create AniGif control (%ErrorLevel%/%A_LastError%)
Gosub AniGif_CreateControl_CleanUp
Return msg
}


Return agHwnd


AniGif_CreateControl_CleanUp: ; In case of error
; Nothing to do here
Return
}


/**
 * Function to call before exiting or destroying the GUI.
 */
AniGif_DestroyControl(_agHwnd)
{
If (_agHwnd != 0)
{
AniGif_UnloadGif(_agHwnd)
DllCall("DestroyWindow", "UInt", _agHwnd)
}
}




;AniGIF control messages
; WM_USER := 0x400 ; 1024
; WAGM_BASE := WM_USER+1000 ; 2024


/**
 * After control creation, allows to load the indicated file.
 */
AniGif_LoadGifFromFile(_agHwnd, _gifFile)
{
; WAGM_LOADGIFFROMFILE EQU WAGM_BASE+0 ;wParam:N/A, lParam:lpFileName


VarSetCapacity(var, StrPut(_gifFile, "cp0") * 2)
StrPut(_gifFile, &var, "cp0")
SendMessage, 2024, 0, &var, , ahk_id %_agHwnd%
}


; Skipped WAGM_LOADGIFFROMRESOURCE EQU WAGM_BASE+1 ;wParam:hInstance, lParam:ResourceID


/**
 * Probably free memory used by the loaded Gif.
 */
AniGif_UnloadGif(_agHwnd)
{
; WAGM_UNLOADGIF EQU WAGM_BASE+2 ;wParam:N/A, lParam:N/A
SendMessage 2026, 0, 0, , ahk_id %_agHwnd%
}


/**
 * Set the URL of the hyperlink called when clicking on the Gif.
 * The control must be created with the 'hyperlink' style.
 */
AniGif_SetHyperlink(_agHwnd, _url)
{
; WAGM_SETHYPERLINK EQU WAGM_BASE+3 ;wParam:N/A, lParam:lpszHyprelink
SendMessage 2027, 0, &_url, , ahk_id %_agHwnd%
}


/**
 * Zoom in (_bZoomIn = 1) or zoom out (bZoomIn = 0) the given Gif by steps of 10%.
 */
AniGif_Zoom(_agHwnd, _bZoomIn)
{
; WAGM_ZOOM EQU WAGM_BASE+4 ;wParam:N/A, lParam:TRUE(Zoom In by 10%)/FALSE(Zoom Out by 10%)
PostMessage 2028, 0, _bZoomIn, , ahk_id %_agHwnd%
}


/**
 * Change background color of the Gif (if it has transparency or if it is smaller than the control).
 * Color is in BGR format (ie. 0xFF8800 sets blue to FF, green to 88 and red to 00).
 */
AniGif_SetBkColor(_agHwnd, _backColor)
{
; WAGM_SETBKCOLOR EQU WAGM_BASE+5 ;wParam:N/A, lParam:BkColor
PostMessage 2029, 0, _backColor, , ahk_id %_agHwnd%
}


;-----8<----- For real use, just remove the part below before including the file ----------
; Run test code only if the file is ran standalone
If (A_ScriptName = "Control_AniGif.ahk")
{


IfNotExist %A_ScriptDir%\AniGIF.dll
{
URLDownloadToFile https://ahknet.autohotkey.com/~PhiLho/AniGIF.dll, AniGIF.dll
URLDownloadToFile https://ahknet.autohotkey.com/~PhiLho/Images/Flag_France.gif, Flag_France.gif
URLDownloadToFile https://ahknet.autohotkey.com/~PhiLho/Images/pacman.gif, pacman.gif
URLDownloadToFile https://ahknet.autohotkey.com/~PhiLho/Images/teleport.gif, teleport.gif
URLDownloadToFile https://ahknet.autohotkey.com/~PhiLho/Images/Earth.gif, Earth.gif
}


Gui +LastFound
guiID := WinExist()


hAniGif1 := AniGif_CreateControl(guiID, 10, 10, 49, 20)
If hAniGif1 is not integer
MsgBox %hAniGif1%


hAniGif2 := AniGif_CreateControl(guiID, 70, 10, 38, 28)
If hAniGif2 is not integer
MsgBox %hAniGif2%


hAniGif3 := AniGif_CreateControl(guiID, 120, 10, 80, 50, "hyperlink center")
If hAniGif3 is not integer
MsgBox %hAniGif3%


hAniGif4 := AniGif_CreateControl(guiID, 220, 10, 150, 150, "center")
If hAniGif4 is not integer
MsgBox %hAniGif4%


Gui Add, Button, x10 y200 w50 gControl_AniGif_Show Default, OK
Gui Add, Button, x+20 w50 gControl_AniGif_Exit, Cancel
Gui Add, Button, x200 y200 w20 gControl_AniGif_ZoomIn, +
Gui Add, Button, x+10 w20 gControl_AniGif_ZoomOut, -


Gui Show, w500, AniGif demo


;~ AniGif_LoadGifFromFile(hAniGif1, A_ScriptDir . "\pacman.gif")
AniGif_LoadGifFromFile(hAniGif1, "pacman.gif")


AniGif_LoadGifFromFile(hAniGif2, A_ScriptDir . "\Flag_France.gif")
AniGif_SetBkColor(hAniGif2, 0xFFAA88)


AniGif_LoadGifFromFile(hAniGif3, A_ScriptDir . "\teleport.gif")
AniGif_SetBkColor(hAniGif3, 0xBBCCBB)
AniGif_SetHyperlink(hAniGif3, "http://www.AutoHotkey.com")


AniGif_LoadGifFromFile(hAniGif4, A_ScriptDir . "\Earth.gif")
AniGif_SetBkColor(hAniGif4, 0)


Return


Control_AniGif_ZoomIn:
AniGif_Zoom(hAniGif4, 1)
Return


Control_AniGif_ZoomOut:
AniGif_Zoom(hAniGif4, 0)
Return


Control_AniGif_Exit:
AniGif_DestroyControl(hAniGif1)
AniGif_DestroyControl(hAniGif2)
AniGif_DestroyControl(hAniGif3)
AniGif_DestroyControl(hAniGif4)
ExitApp


Control_AniGif_Show:
MsgBox (%hAniGifModule%) %hAniGif1% %hAniGif2% %hAniGif3% %hAniGif4%
Return
}


just me
  • Members
  • 1496 posts
  • Last active: Nov 03 2015 04:32 PM
  • Joined: 28 May 2011

Are you running AHK Unicode? Then you have to pass the filename of the GIF as an ANSI string like your version of Control_Anigif.ahk already does.

 

The AniGif.dll should be stored in the script's folder.


Prefer ahkscript.org for the time being.


None
  • Members
  • 3199 posts
  • Last active: Nov 05 2015 09:55 PM
  • Joined: 28 Nov 2009

What about using a ActiveX control

  var = C:\Files\Files\Files.gif ;location of gif you want to show
  Gui, Add, ActiveX, x0 y0 w120 h120 vWB, shell explorer
  wb.Navigate("about:blank")
  html := "<html>`n<title>name</title>`n<body>`n<center>`n<img src=""" var """ >`n</center>`n</body>`n</html>"
  wb.document.write(html)
  Gui, show, AutoSize Center

 

 


Xx7
  • Members
  • 674 posts
  • Last active: Mar 24 2015 10:48 PM
  • Joined: 19 Apr 2011
Are you running AHK Unicode? Then you have to pass the filename of the GIF as an ANSI string like your version of Control_Anigif.ahk already does.

 

The AniGif.dll should be stored in the script's folder.

 

 

 

hmmmm... so this isn't the appropriate call?  Do you have an example of the pass with an ANSI string?

 


AniGif_LoadGifFromFile(hAniGif1, "C:\mygif1.gif")

 

 


 

 

What about using a ActiveX control

  var = C:\Files\Files\Files.gif ;location of gif you want to show
  Gui, Add, ActiveX, x0 y0 w120 h120 vWB, shell explorer
  wb.Navigate("about:blank")
  html := "<html>`n<title>name</title>`n<body>`n<center>`n<img src=""" var """ >`n</center>`n</body>`n</html>"
  wb.document.write(html)
  Gui, show, AutoSize Center

 

 

 

^^^this works phenomenal!  What user requirements are needed for this to work?  Is it just a windows operating system?  Or do they need internet explorer installed too? thx smile.png



just me
  • Members
  • 1496 posts
  • Last active: Nov 03 2015 04:32 PM
  • Joined: 28 May 2011

From your original post:

 

/**
 * After control creation, allows to load the indicated file.
 */
AniGif_LoadGifFromFile(_agHwnd, _gifFile)
{
; WAGM_LOADGIFFROMFILE EQU WAGM_BASE+0 ;wParam:N/A, lParam:lpFileName
VarSetCapacity(var, StrPut(_gifFile, "cp0") * 2)
StrPut(_gifFile, &var, "cp0")
SendMessage, 2024, 0, &var, , ahk_id %_agHwnd%
}

Prefer ahkscript.org for the time being.


Cattleya
  • Members
  • 90 posts
  • Last active: Sep 13 2013 05:11 AM
  • Joined: 28 Sep 2011

Thank you so much, just me, I also searching for AniGIF problem that it "Error loading file" and your post solved my problem :)

 

From your original post:

/**
 * After control creation, allows to load the indicated file.
 */
AniGif_LoadGifFromFile(_agHwnd, _gifFile)
{
; WAGM_LOADGIFFROMFILE EQU WAGM_BASE+0 ;wParam:N/A, lParam:lpFileName
VarSetCapacity(var, StrPut(_gifFile, "cp0") * 2)
StrPut(_gifFile, &var, "cp0")
SendMessage, 2024, 0, &var, , ahk_id %_agHwnd%
}

 

 

So I will post the modified version of AniGIF that work on Autohotkey_L, hope anyone has the same problem as me can solve it soon if they find this post:

/*
Control_AniGif.ahk

Add a AniGif control to your AHK Gui.
AniGif by akyprian: http://www.winasm.net/forum/index.php?showtopic=279
From his source file:
;|AniGIF is a copyright of Antonis Kyprianou.                             |
;|                                                                        |
;|You can use AniGIF for NON commercial purposes provided you             |
;|have the following information on your application's about box:         |
;|AniGIF control is copyright of Antonis Kyprianou (http://www.winasm.net)|
;|                                                                        |
;|You need my WRITTEN permission to use AniGIF in commercial applications |

// by Philippe Lhoste <PhiLho(a)GMX.net> http://Phi.Lho.free.fr
// File/Project history:
 1.03.000 -- 2007/05/17 (PL) -- Total encapsulation.
 1.02.000 -- 2007/05/16 (PL) -- Changed functions names (thanks majkinetor), added more wrappers, freed correctly DLL.
 1.01.000 -- 2007/05/16 (PL) -- Update to 1.0.4.0 with WAGM_SETBKCOLOR.
 1.00.000 -- 2007/05/16 (PL) -- Creation.
*/
/* Copyright notice: For details, see the following file:
http://Phi.Lho.free.fr/softwares/PhiLhoSoft/PhiLhoSoftLicence.txt
This program is distributed under the zlib/libpng license.
Copyright (c) 2007 Philippe Lhoste / PhiLhoSoft
*/

/**
 * Control creation: you have to provide the ID of the GUI in which the control goes,
 * its position (_x, _y) and size (_w, _h) and optionally additional styles,
 * made of a string with keywords:
 * - autosize to make the control adapts to the Gif size
 * - center to center the Gif in the control
 * - hyperlink to allow clicking on the control and opening the URL defined later
 * Note that the required DLL is loaded automatically on first call.
 */
AniGif_CreateControl(_guiHwnd, _x, _y, _w, _h, _style="")
{
	local hAniGif, agHwnd
	local msg, style
	static $bFirstCall := true

	If ($bFirstCall)
	{
		$bFirstCall := false
		; It will be unloaded at script end
		hAniGif := DllCall("LoadLibrary", "Str", "AniGif.dll")
	}

	style := 0
	If (_style != "")
	{
		If _style contains autosize
			style |= 1	; WAGS_AUTOSIZE
		If _style contains center
			style |= 2	; WAGS_CENTER
		If _style contains hyperlink
			style |= 4	; WAGS_HYPERLINK
	}
	; WS_CHILD | WS_VISIBLE
	style := 0x50000000 | style

	; http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/createwindowex.asp
	agHwnd := DLLCall("CreateWindowEx"
			, "UInt", 0                     ; Style, can be WS_EX_CLIENTEDGE = 0x200
			, "Str", "AniGIF"               ; Class Name
			, "Str", "AnimatedGif"          ; Window name
			, "UInt",  style                ; Window style
			, "Int", _x                     ; X position
			, "Int", _y                     ; Y position
			, "Int", _w                     ; Width
			, "Int", _h                     ; Height
			, "UInt", _guiHwnd              ; Handle of parent
			, "UInt", 0                     ; Menu
			, "UInt", 0               ; hInstance of the module registering the component's class
			, "UInt", 0)                    ; User defined style
	If (ErrorLevel != 0 or agHwnd = 0)
	{
		msg = %msg% Cannot create AniGif control (%ErrorLevel%/%A_LastError%)
		Gosub AniGif_CreateControl_CleanUp
		Return msg
	}

	Return agHwnd

AniGif_CreateControl_CleanUp:	; In case of error
	; Nothing to do here
Return
}

/**
 * Function to call before exiting or destroying the GUI.
 */
AniGif_DestroyControl(_agHwnd)
{
	If (_agHwnd != 0)
	{
		AniGif_UnloadGif(_agHwnd)
		DllCall("DestroyWindow", "UInt", _agHwnd)
	}
}


;AniGIF control messages
; WM_USER := 0x400 ; 1024
; WAGM_BASE := WM_USER+1000 ; 2024

/**
 * After control creation, allows to load the indicated file.
 */

AniGif_LoadGifFromFile(_agHwnd, _gifFile)
{
; WAGM_LOADGIFFROMFILE EQU WAGM_BASE+0 ;wParam:N/A, lParam:lpFileName
VarSetCapacity(var, StrPut(_gifFile, "cp0") * 2)
StrPut(_gifFile, &var, "cp0")
SendMessage, 2024, 0, &var, , ahk_id %_agHwnd%
}

; Skipped WAGM_LOADGIFFROMRESOURCE	EQU WAGM_BASE+1	;wParam:hInstance,	lParam:ResourceID

/**
 * Probably free memory used by the loaded Gif.
 */
AniGif_UnloadGif(_agHwnd)
{
	; WAGM_UNLOADGIF EQU WAGM_BASE+2	;wParam:N/A,		lParam:N/A
	SendMessage 2026, 0, 0, , ahk_id %_agHwnd%
}

/**
 * Set the URL of the hyperlink called when clicking on the Gif.
 * The control must be created with the 'hyperlink' style.
 */
AniGif_SetHyperlink(_agHwnd, _url)
{
	; WAGM_SETHYPERLINK EQU WAGM_BASE+3	;wParam:N/A,		lParam:lpszHyprelink
	SendMessage 2027, 0, &_url, , ahk_id %_agHwnd%
}

/**
 * Zoom in (_bZoomIn = 1) or zoom out (bZoomIn = 0) the given Gif by steps of 10%.
 */
AniGif_Zoom(_agHwnd, _bZoomIn)
{
	; WAGM_ZOOM EQU WAGM_BASE+4	;wParam:N/A,		lParam:TRUE(Zoom In by 10%)/FALSE(Zoom Out by 10%)
	PostMessage 2028, 0, _bZoomIn, , ahk_id %_agHwnd%
}

/**
 * Change background color of the Gif (if it has transparency or if it is smaller than the control).
 * Color is in BGR format (ie. 0xFF8800 sets blue to FF, green to 88 and red to 00).
 */
AniGif_SetBkColor(_agHwnd, _backColor)
{
	; WAGM_SETBKCOLOR EQU WAGM_BASE+5	;wParam:N/A,		lParam:BkColor
	PostMessage 2029, 0, _backColor, , ahk_id %_agHwnd%
}

;-----8<----- For real use, just remove the part below before including the file ----------
; Run test code only if the file is ran standalone
If (A_ScriptName = "Control_AniGif.ahk")
{


Gui +LastFound
guiID := WinExist()

hAniGif1 := AniGif_CreateControl(guiID, 10, 10, 49, 20)
If hAniGif1 is not integer
	MsgBox %hAniGif1%

hAniGif2 := AniGif_CreateControl(guiID, 70, 10, 38, 28)
If hAniGif2 is not integer
	MsgBox %hAniGif2%

hAniGif3 := AniGif_CreateControl(guiID, 120, 10, 80, 50, "hyperlink center")
If hAniGif3 is not integer
	MsgBox %hAniGif3%

hAniGif4 := AniGif_CreateControl(guiID, 220, 10, 150, 150, "center")
If hAniGif4 is not integer
	MsgBox %hAniGif4%

Gui Add, Button, x10 y200 w50 gControl_AniGif_Show Default, OK
Gui Add, Button, x+20 w50 gControl_AniGif_Exit, Cancel
Gui Add, Button, x200 y200 w20 gControl_AniGif_ZoomIn, +
Gui Add, Button, x+10 w20 gControl_AniGif_ZoomOut, -

Gui Show, w500, AniGif demo

;~ AniGif_LoadGifFromFile(hAniGif1, A_ScriptDir . "\Gif-1.gif")
AniGif_LoadGifFromFile(hAniGif1, "Gif-1.gif")

AniGif_LoadGifFromFile(hAniGif2, A_ScriptDir . "\Gif-1.gif")
AniGif_SetBkColor(hAniGif2, 0xFFAA88)

AniGif_LoadGifFromFile(hAniGif3, A_ScriptDir . "\Gif-1.gif")
AniGif_SetBkColor(hAniGif3, 0xBBCCBB)
AniGif_SetHyperlink(hAniGif3, "http://www.AutoHotkey.com")

AniGif_LoadGifFromFile(hAniGif4, A_ScriptDir . "\Gif-1.gif")
AniGif_SetBkColor(hAniGif4, 0)

Return

Control_AniGif_ZoomIn:
	AniGif_Zoom(hAniGif4, 1)
Return

Control_AniGif_ZoomOut:
	AniGif_Zoom(hAniGif4, 0)
Return

Control_AniGif_Exit:
	AniGif_DestroyControl(hAniGif1)
	AniGif_DestroyControl(hAniGif2)
	AniGif_DestroyControl(hAniGif3)
	AniGif_DestroyControl(hAniGif4)
ExitApp

Control_AniGif_Show:
	MsgBox (%hAniGifModule%) %hAniGif1% %hAniGif2% %hAniGif3% %hAniGif4%
Return
}



specter333
  • Members
  • 627 posts
  • Last active: Oct 07 2016 07:43 AM
  • Joined: 15 Jan 2007

Thank you for posting the AHK_L version.  I've been having quite a few problems since switching over. 

 

I tried using a active x control but the gif images that work just fine with anygif and Fire Fox just stutter and look like crap in internet explorer.  I did a quick google search for gif prolems in ie and got about a billion hits.  Looks like it's a long known problem that's never going to ge fixed, so anygif is our only solution.


I you need new version of any scripts I haven't re-uploaded yet feel free to pm me.