Page 1 of 1

Is it possible to create an on screen fireworks visual effect

Posted: 23 Apr 2024, 07:24
by songdg
Image

Re: Is it possible to create an on screen fireworks visual effect

Posted: 23 Apr 2024, 08:09
by kunkel321
Here's a fun thing I found a long time ago... It's all v1 code though. Info in the readme points to this: https://github.com/acorns/Particle-System/tree/master

Eh... Sorry, it's too big to zip and attach. Here is the readme though
# Particle-System
It makes pretties

##Tested with:
* AHK 1.1.24.02 32bit unicode
* Windows 10 64bit
* Gdip_all by Rseding91

See [Docs.txt](https://github.com/acorns/Particle-System/blob/master/Docs.txt) for simple documentation, too lazy to make it markdown.

For some gifs of it in action, [Images folder](https://github.com/acorns/Particle-System/tree/master/Images)

It's probably not the best written code as I don't usually write classes and I have barely used GDI+ in the past. But it works.
And this is at the top of the docs:
Requires: Gdip by tic/Rseding91:
get: "Alternative Download: Gdip All" https://autohotkey.com/boards/viewtopic.php?t=6517
... but it should already be packaged with the program

Re: Is it possible to create an on screen fireworks visual effect

Posted: 24 Apr 2024, 06:24
by songdg
kunkel321 wrote:
23 Apr 2024, 08:09
Here's a fun thing I found a long time ago... It's all v1 code though. Info in the readme points to this: https://github.com/acorns/Particle-System/tree/master

Eh... Sorry, it's too big to zip and attach. Here is the readme though
# Particle-System
It makes pretties

##Tested with:
* AHK 1.1.24.02 32bit unicode
* Windows 10 64bit
* Gdip_all by Rseding91

See [Docs.txt](https://github.com/acorns/Particle-System/blob/master/Docs.txt) for simple documentation, too lazy to make it markdown.

For some gifs of it in action, [Images folder](https://github.com/acorns/Particle-System/tree/master/Images)

It's probably not the best written code as I don't usually write classes and I have barely used GDI+ in the past. But it works.
And this is at the top of the docs:
Requires: Gdip by tic/Rseding91:
get: "Alternative Download: Gdip All" https://autohotkey.com/boards/viewtopic.php?t=6517
... but it should already be packaged with the program
Thanks, it seems AHK is not build for that purpose, I search the forum and only found a post about display a ripple effectviewtopic.php?f=6&t=8963&hilit=visual+effect

Re: Is it possible to create an on screen fireworks visual effect  Topic is solved

Posted: 24 Apr 2024, 07:45
by Noitalommi_2
Hi.

I don't know how beautiful your fireworks should be, but you could use an animated gif. An example can be found in the documentation.

Code: Select all

#Requires AutoHotkey 2.0
#SingleInstance

F4::Exitapp

pic := "https://i.gifer.com/VZvx.gif"
g := Gui("AlwaysOnTop ToolWindow -Caption")
g.MarginX := g.MarginY := 0
g.Add("ActiveX", "w500 h474", "mshtml:<img src='" pic "' />")
g.Show()
WinSetTransColor(0xFFFFFF , "ahk_id" g.Hwnd)

Re: Is it possible to create an on screen fireworks visual effect

Posted: 24 Apr 2024, 08:49
by william_ahk
I found this AutoIt implementation https://www.autoitscript.com/forum/files/file/382-gdi-simple-firework/
Someone adept at Gdip could try to translate this into AHK :D

Re: Is it possible to create an on screen fireworks visual effect

Posted: 25 Apr 2024, 05:38
by songdg
william_ahk wrote:
24 Apr 2024, 08:49
I found this AutoIt implementation https://www.autoitscript.com/forum/files/file/382-gdi-simple-firework/
Someone adept at Gdip could try to translate this into AHK :D
Thank you very much.

Re: Is it possible to create an on screen fireworks visual effect

Posted: 25 Apr 2024, 05:42
by songdg
Noitalommi_2 wrote:
24 Apr 2024, 07:45
Hi.

I don't know how beautiful your fireworks should be, but you could use an animated gif. An example can be found in the documentation.

Code: Select all

#Requires AutoHotkey 2.0
#SingleInstance

F4::Exitapp

pic := "https://i.gifer.com/VZvx.gif"
g := Gui("AlwaysOnTop ToolWindow -Caption")
g.MarginX := g.MarginY := 0
g.Add("ActiveX", "w500 h474", "mshtml:<img src='" pic "' />")
g.Show()
WinSetTransColor(0xFFFFFF , "ahk_id" g.Hwnd)
Wow, that's amazing :bravo: , the documentation really like a treasure trove.