AniGIF - Create gif control using AniGIF.dll

Post your working scripts, libraries and tools
tmplinshi
Posts: 1278
Joined: 01 Oct 2013, 14:57

AniGIF - Create gif control using AniGIF.dll

16 Aug 2018, 15:12

This is an updated version of Control_AniGif.ahk by Philippe Lhoste.
This class version uses Gui, Add, Custom instead of CreateWindowEx to create the gif control.

Usage:
Create an AniGIF control either by AniGIF_Add() or New AniGIF().

The usage is same as Gui Add, except an additional Link parameter at the end (optional). Examples:

Code: Select all

AniGIF_Add("xm w200 h200 Center BackGroundRed", "test.gif", "http://autohotkey.com")

gif2 := AniGIF_Add("xm", "test2.gif") ; Omit w and h to autosize the control
gif2.SetBkColor(0xff00ff)
gif2.LoadGifFromFile("another.gif")

Gui, Show, w400
Methods:
  • LoadGifFromFile(FileName)
  • UnloadGif()
  • Zoom(bZoom := true) ; bZoom -- TRUE = Zoom In by 10%, FALSE = Zoom Out by 10%
  • SetBkColor(BkColor) ; BkColor -- Color Name or RGB value
  • SetHyperlink(Link)
Github Page
burque505
Posts: 628
Joined: 22 Jan 2017, 19:37

Re: AniGIF - Create gif control using AniGIF.dll

16 Aug 2018, 18:16

Thanks, tmplinshi, it works great. AHK_L 1.1.29.01, 32-bit (64-bit not supported).
Regards,
burque505
aaffe
Posts: 145
Joined: 16 Jan 2014, 04:23

Re: AniGIF - Create gif control using AniGIF.dll

17 Aug 2018, 01:40

very cool. Thank you!
Tradesxi

Re: AniGIF - Create gif control using AniGIF.dll

17 Aug 2018, 09:15

great work and contribution,

the dll is copyright so people should be careful with its use
burque505
Posts: 628
Joined: 22 Jan 2017, 19:37

Re: AniGIF - Create gif control using AniGIF.dll

17 Aug 2018, 13:33

@Tradesxi, it appears from the CodeProject URL for AniGIF that the author re-released the source (despite what it still says in the downloaded source files) under the CPOL license provisions, which do allow commercial use.
Regards,
burque505

Return to “Scripts and Functions”

Who is online

Users browsing this forum: Relayer and 18 guests