tuna wrote:
For me, AniGif_LoadGifFromFile() fails - not too sure why. For the demo I just get
Code:
---------------------------
AniGIF
---------------------------
Error loading file.
---------------------------
OK
---------------------------
I've checked all files are there.
Using Vista 32-bit with AHK_L Unicode. Thanks
When I run it with ahk_L 1.1.05.00, I encountered the same problem. So I make some adjustment to AniGif_LoadGifFromFile, now it is:
Code:
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%
}
It can exactly load the gif file now (Before all maybe
you need change the script's codepage to UTF-8).
_________________
Recommended: AutoHotkey_L My code is based on it or similar versions, e.g. AutoHotkey_H.
Together with AutoHotkey, we grow and march forward. No matter how the future will be, this period of days is still epic.