Search found 6 matches

by Milton
24 Dec 2020, 00:30
Forum: Ask for Help (v1)
Topic: Using an animated Gif on a gui Topic is solved
Replies: 34
Views: 8193

Re: Using an animated Gif on a gui Topic is solved

I can try to help if you show your code and attach your gifs. Sorry for late This is not my full code, but it shows what happens when gif files are after 4 or 5 and so on, also gif files does not matter so i'll not attach them you can use 2 gif and switch them like this code. btw Happy Christmas My...
by Milton
23 Dec 2020, 04:46
Forum: Ask for Help (v1)
Topic: Using an animated Gif on a gui Topic is solved
Replies: 34
Views: 8193

Re: Using an animated Gif on a gui Topic is solved

teadrinker wrote:
22 Dec 2020, 03:57
Try:

Code: Select all

gif1.Pause()
GuiControl,, % hwndGif1, % newFilePath
gif1 := new Gif(newFilePath, hwndGif1)
gif1.Play()
Not tested :)
Here I am with a new asking hope you can help me out with this, after changing gif file over 5 times (time interval does not matter) it starts mixing previous gif frames
by Milton
22 Dec 2020, 04:08
Forum: Ask for Help (v1)
Topic: Using an animated Gif on a gui Topic is solved
Replies: 34
Views: 8193

Re: Using an animated Gif on a gui Topic is solved

teadrinker wrote:
22 Dec 2020, 03:57
Try:

Code: Select all

gif1.Pause()
GuiControl,, % hwndGif1, % newFilePath
gif1 := new Gif(newFilePath, hwndGif1)
gif1.Play()
Not tested :)
Thank you! it works
by Milton
22 Dec 2020, 02:59
Forum: Ask for Help (v1)
Topic: Using an animated Gif on a gui Topic is solved
Replies: 34
Views: 8193

Re: Using an animated Gif on a gui Topic is solved

Replace the line SetImage(this.hwnd, hBitmap) with GuiControl,, % this.hwnd, HBITMAP: %hBitmap% , then you can change the picture size here: Gui, Add, Picture, y10 hwndhwndGif1, % filePath like this Gui, Add, Picture, y10 hwndhwndGif1 w400 h600, % filePath or like this Gui, Add, Picture, y10 hwndhw...
by Milton
17 Dec 2020, 04:23
Forum: Ask for Help (v1)
Topic: Using an animated Gif on a gui Topic is solved
Replies: 34
Views: 8193

Re: Using an animated Gif on a gui Topic is solved

Replace the line SetImage(this.hwnd, hBitmap) with GuiControl,, % this.hwnd, HBITMAP: %hBitmap% , then you can change the picture size here: Gui, Add, Picture, y10 hwndhwndGif1, % filePath like this Gui, Add, Picture, y10 hwndhwndGif1 w400 h600, % filePath or like this Gui, Add, Picture, y10 hwndhw...
by Milton
15 Dec 2020, 19:59
Forum: Ask for Help (v1)
Topic: Using an animated Gif on a gui Topic is solved
Replies: 34
Views: 8193

Re: Using an animated Gif on a gui Topic is solved

Try this: #NoEnv ; #Include Gdip_All.ahk SetBatchLines, -1 filePath := "C:\Users\User\Desktop\crash.gif" ; specify the file path to gif pToken := Gdip_Startup() OnExit, Exit exStyles := (WS_EX_COMPOSITED := 0x02000000) | (WS_EX_LAYERED := 0x80000) Gui, New, +E%exStyles% Gui, Add, Picture, y10 hwndh...

Go to advanced search