showGif()

Post AHK_H specific scripts & libraries and discuss the usage and development of HotKeyIt's fork/branch
arcticir
Posts: 471
Joined: 17 Nov 2013, 11:32

showGif()

06 Jul 2017, 01:02

Forum has two ways to load GIF, ActiveX takes up too much memory, AniGIF.dll performance is very slow, loading large files is a nightmare.

ShowGif() to solve the above two issues,
Its drawback is the use of "SetTimer_", we all know that it is not very accurate.



Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

Last edited by arcticir on 06 Jul 2017, 02:05, edited 1 time in total.
User avatar
jNizM
Posts: 2290
Joined: 30 Sep 2013, 01:33
GitHub: jNizM
Contact:

Re: showGif()

06 Jul 2017, 01:04

I'm not a _H guy, but what' wrong with Gui, Add, Picture?
[AHK] 1.1.26.01 x64 Unicode | [WIN] 10 Pro (Version 1703) x64
My GitHub Profile | Donations are appreciated if I could help you
arcticir
Posts: 471
Joined: 17 Nov 2013, 11:32

Re: showGif()

06 Jul 2017, 01:16

Picture control does not play GIF
User avatar
jNizM
Posts: 2290
Joined: 30 Sep 2013, 01:33
GitHub: jNizM
Contact:

Re: showGif()

06 Jul 2017, 01:39

Ahh ok.. never tried it before :D
Glad you found a better working solution =)
[AHK] 1.1.26.01 x64 Unicode | [WIN] 10 Pro (Version 1703) x64
My GitHub Profile | Donations are appreciated if I could help you
Helgef
Posts: 2414
Joined: 17 Jul 2016, 01:02
Contact:

Re: showGif()

06 Jul 2017, 02:52

Hello arcticir.
Unfortunately, I get an error :cry:

Code: [Select all] [Expand] [Download] (Untitled.txt)GeSHi © Codebox Plus


I changed the gif to an existing one. And just downloaded the latest ahk_h v2.

Also,
ahkTime() wrote:

Code: [Select all] [Download] GeSHi © Codebox Plus

Critical("c")



Here is another creative gif script, for anyone interested, Laughing Man.
arcticir
Posts: 471
Joined: 17 Nov 2013, 11:32

Re: showGif()

07 Jul 2017, 10:28

Sorry, I can not reproduce this error.
Helgef
Posts: 2414
Joined: 17 Jul 2016, 01:02
Contact:

Re: showGif()

07 Jul 2017, 11:31

I removed +parent" hwnd and did DllCall("SetParent", "Ptr", gui.hwnd, "Ptr", hwnd, "Ptr"), I get no error and the gui shows with correct dimensions but no image :think:
Spoiler
arcticir
Posts: 471
Joined: 17 Nov 2013, 11:32

Re: showGif()

08 Jul 2017, 04:15

SetParent will destroy child window properties.

Return to “AutoHotkey_H”

Who is online

Users browsing this forum: No registered users and 1 guest