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

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
songdg
Posts: 594
Joined: 04 Oct 2017, 20:04

Is it possible to create an on screen fireworks visual effect

23 Apr 2024, 07:24

Image
Attachments
fireworks.png
(919.23 KiB) Downloaded 130 times
User avatar
kunkel321
Posts: 1108
Joined: 30 Nov 2015, 21:19

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

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
ste(phen|ve) kunkel
songdg
Posts: 594
Joined: 04 Oct 2017, 20:04

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

24 Apr 2024, 06:24

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
Noitalommi_2
Posts: 260
Joined: 16 Aug 2023, 10:58

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

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)
william_ahk
Posts: 499
Joined: 03 Dec 2018, 20:02

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

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
songdg
Posts: 594
Joined: 04 Oct 2017, 20:04

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

25 Apr 2024, 05:38

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.
songdg
Posts: 594
Joined: 04 Oct 2017, 20:04

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

25 Apr 2024, 05:42

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.

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: No registered users and 54 guests