new Notify class leveraging Window's Animations from Maestrith

Post your working scripts, libraries and tools
User avatar
Joe Glines
Posts: 701
Joined: 30 Sep 2013, 20:49
Facebook: https://www.facebook.com/theAutomatorGuru/
Google: https://plus.google.com/105328929654286634910
GitHub: joetazz
Location: Dallas
Contact:

new Notify class leveraging Window's Animations from Maestrith

09 Apr 2020, 11:15

I asked Maestrith to look at gwarble's notify function. He liked the concept but created his own Class which, to me, is much more straight forward and easy to use.

I created a video to demonstrate it's usage. You can watch it below and get the code I demonstrated in the video here. Thanks again Maestrith for the amazing work! Should you like the class, please consider donating a few bucks a few bucks to Maestrith.



Find & Click AutoHotkey syntax writer Automate my Task :clap:
AHK Tutorials:Web Scraping | AHK Studio | Webservice APIs | Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey :ugeek:
Connect with me on LinkedIn :beer: | YouTube
How-to: Create a shortcut that automatically
logs in to any website

:thumbup: Quick Access Popup, the powerful Windows folders, apps and documents launcher!
Help support the AutoHotkey foundation
burque505
Posts: 1396
Joined: 22 Jan 2017, 19:37

Re: new Notify class leveraging Window's Animations from Maestrith

09 Apr 2020, 12:31

Thank you, Joe. I'm actually a fan of @gwarble's script, and this is equally interesting. Thanks, @maestrith, for creating this.
I did find it necessary to separate out the example(s) from the class to understand what was happening.
In case someone just as obtuse as I am may find it useful, what I ended up with these:
Notify().ahk:
Spoiler
NotifyEx.ahk:
Spoiler
NotifyEx2.ahk:
Spoiler
Regards,
burque505
User avatar
Delta Pythagorean
Posts: 567
Joined: 13 Feb 2017, 13:44
GitHub: DelPyth
Location: Somewhere in the US

Re: new Notify class leveraging Window's Animations from Maestrith

09 Apr 2020, 14:19

Offtopic: I always scream when I see maestrith not put any spaces anywhere in his code lol
Last edited by Delta Pythagorean on 09 Apr 2020, 19:32, edited 1 time in total.

- [AHK].......: 1.1.33.02 Unicode 64-bit
- [OS].........: Windows 10.0.18362
- [GITHUB]...: github.com/DeltaPyth
- [PAYPAL]....: paypal.me/DelPyth
- [DISCORD]..: Delta#3324

Remember to use [code]CODE[/code] for your multi-line scripts.
Stay safe, stay inside, and remember to wash your hands for 20 seconds!
User avatar
kczx3
Posts: 1195
Joined: 06 Oct 2015, 21:39

Re: new Notify class leveraging Window's Animations from Maestrith

09 Apr 2020, 19:24

Delta Pythagorean wrote:
09 Apr 2020, 14:19
Offtopic: I always scream when I see maestrith not put any spaced anywhere in his code lol
Seconded! There’s other on this forum that also do this and it slightly drives me bonkers
User avatar
kczx3
Posts: 1195
Joined: 06 Oct 2015, 21:39

Re: new Notify class leveraging Window's Animations from Maestrith

09 Apr 2020, 19:26

Also, I wish there was some code that used the actually Windows Animation stuff. AnimateWindow performs quite poorly actually.
User avatar
Joe Glines
Posts: 701
Joined: 30 Sep 2013, 20:49
Facebook: https://www.facebook.com/theAutomatorGuru/
Google: https://plus.google.com/105328929654286634910
GitHub: joetazz
Location: Dallas
Contact:

Re: new Notify class leveraging Window's Animations from Maestrith

10 Apr 2020, 06:32

@Delta Pythagorean @kczx3
Personally I find the spaces a complete waste and HATE them! So let's not use this post as a debate on a personal preference. There is no "right" answer here.

Find & Click AutoHotkey syntax writer Automate my Task :clap:
AHK Tutorials:Web Scraping | AHK Studio | Webservice APIs | Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey :ugeek:
Connect with me on LinkedIn :beer: | YouTube
How-to: Create a shortcut that automatically
logs in to any website

:thumbup: Quick Access Popup, the powerful Windows folders, apps and documents launcher!
Help support the AutoHotkey foundation
User avatar
Joe Glines
Posts: 701
Joined: 30 Sep 2013, 20:49
Facebook: https://www.facebook.com/theAutomatorGuru/
Google: https://plus.google.com/105328929654286634910
GitHub: joetazz
Location: Dallas
Contact:

Re: new Notify class leveraging Window's Animations from Maestrith

10 Apr 2020, 06:34

@burque505 I've used gwarble's code for years but I was never a "fan" of how it worked or the way it was implemented. That was why I asked Maestrith to take a look at it. I think he brought it great functionality and made it much more intuitive.

P.S. The code is bound to change as it is new. That's why I didn't want to actually put it in the post as it becomes problematic for people to know which version they are using...

Find & Click AutoHotkey syntax writer Automate my Task :clap:
AHK Tutorials:Web Scraping | AHK Studio | Webservice APIs | Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey :ugeek:
Connect with me on LinkedIn :beer: | YouTube
How-to: Create a shortcut that automatically
logs in to any website

:thumbup: Quick Access Popup, the powerful Windows folders, apps and documents launcher!
Help support the AutoHotkey foundation
malcev
Posts: 795
Joined: 12 Aug 2014, 12:37

Re: new Notify class leveraging Window's Animations from Maestrith

10 Apr 2020, 10:38

kczx3 wrote:
09 Apr 2020, 19:26
Also, I wish there was some code that used the actually Windows Animation stuff. AnimateWindow performs quite poorly actually.
https://www.autohotkey.com/boards/viewtopic.php?t=28834
But it is better to use DirectComposition+Direct3d11+DXGI, but it will be more complex.
https://autohotkey.com/board/topic/95837-samplewin8ahk-h-gui-animation-directcomposition-sample-one/
User avatar
maestrith
Posts: 825
Joined: 16 Oct 2013, 13:52

Re: new Notify class leveraging Window's Animations from Maestrith

11 Apr 2020, 13:06

Delta Pythagorean wrote:
09 Apr 2020, 14:19
Offtopic: I always scream when I see maestrith not put any spaces anywhere in his code lol
I've never really liked spaces. You can use AHK-Studio, select everything, Alt+M Add Space After Comma{Enter} to "fix" it but I have found that having an editor with a good color scheme is enough to break up any code.
John H Wilson III 05/29/51 - 03/01/2020. You will be missed.AHK Studio OSDGUI Creator
Donations
Discord
All code is done on a 64 bit Windows 10 PC Running AutoHotkey x32
User avatar
Delta Pythagorean
Posts: 567
Joined: 13 Feb 2017, 13:44
GitHub: DelPyth
Location: Somewhere in the US

Re: new Notify class leveraging Window's Animations from Maestrith

11 Apr 2020, 13:30

maestrith wrote:
11 Apr 2020, 13:06
Delta Pythagorean wrote:
09 Apr 2020, 14:19
Offtopic: I always scream when I see maestrith not put any spaces anywhere in his code lol
I've never really liked spaces. You can use AHK-Studio, select everything, Alt+M Add Space After Comma{Enter} to "fix" it but I have found that having an editor with a good color scheme is enough to break up any code.
I was just joking, I don't mind it, but it does make it a little harder for me to read it. Nothing wrong with it ^^

- [AHK].......: 1.1.33.02 Unicode 64-bit
- [OS].........: Windows 10.0.18362
- [GITHUB]...: github.com/DeltaPyth
- [PAYPAL]....: paypal.me/DelPyth
- [DISCORD]..: Delta#3324

Remember to use [code]CODE[/code] for your multi-line scripts.
Stay safe, stay inside, and remember to wash your hands for 20 seconds!
User avatar
elModo7
Posts: 188
Joined: 01 Sep 2017, 02:38
GitHub: elModo7
Location: Spain
Contact:

Re: new Notify class leveraging Window's Animations from Maestrith

12 Apr 2020, 09:25

Damn those are flashy, I find them actually quite useful for live streams so that users can redeem things and those pop up on screen.
Appreciated!
:beer:
BoBo
Posts: 3851
Joined: 13 May 2014, 17:15

Re: new Notify class leveraging Window's Animations from Maestrith

20 Jul 2020, 02:10

Great stuff! :thumbup:
Taking your kowledge about the system into account, I asked myself if there's a chance to detect the standard Windows notification/pop-up messages using AHK? Either I haven't used the correct search terms (or I'm kinda meh this time), or we aren't able to make it??? Any advice will be much appreciated. Thx :)
MancioDellaVega
Posts: 44
Joined: 16 May 2020, 12:27

Re: new Notify class leveraging Window's Animations from Maestrith

20 Jul 2020, 09:59

Thanks, :clap: :clap:
So, if i understand well this notify class does the same things as the notify function but has one code very compact... and seems more fast...
Courses on AutoHotkey

Return to “Scripts and Functions”

Who is online

Users browsing this forum: c7aesa7r, Google [Bot] and 25 guests