Is it possible to create an on screen fireworks visual effect
Posted: 23 Apr 2024, 07:24
Let's help each other out
https://www.autohotkey.com/boards/
https://www.autohotkey.com/boards/viewtopic.php?f=82&t=129183
And this is at the top of the docs:# 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.
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+effectkunkel321 wrote: ↑23 Apr 2024, 08:09Here'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 thoughAnd this is at the top of the docs:# 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.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
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)
Thank you very much.william_ahk wrote: ↑24 Apr 2024, 08:49I 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
Wow, that's amazing , the documentation really like a treasure trove.Noitalommi_2 wrote: ↑24 Apr 2024, 07:45Hi.
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)