Ok I am trying to get into my little head with very little braincells left how to use the Control_AniGif.ahk ( with the demo part of the code deleted) and the aniGIF.dll file to display animated gifs that my program needs to operate effectively. Now below is the most basic code I could think of to give me a handle without a person having to put too much effort into it. Thank you for any help in advance.
;animatedGIF.ahk
#NoEnv
#Persistent,On
#SingleInstance,Force
SetBatchLines,-1
SetWinDelay,0
DetectHiddenWindows,On
posx:=0 ;screen x
posy:=0 ;screen y
trans:=255 ;0-255
Gui,+Owner +AlwaysOnTop +E0x20 +Disable +Resize -SysMenu -MinimizeBox -MaximizeBox -Disabled -Caption -Border -ToolWindow +Background
WinSet,Transparent,0,ShowMouse
Gui,Margin,5,5
Gui,Color, white
Gui,Add,Picture, w200 h200 vpicid,XYZ.gif
Gui,Show,x%posx% y%posy% NoActivate,
Gui,+LastFound
guiid:=WinExist()
WinSet,Transparent,,