Notify() - Move all open Notifications down on close Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
robmar-zl
Posts: 8
Joined: 05 Feb 2015, 04:57

Notify() - Move all open Notifications down on close

21 Jun 2017, 02:57

Hi,

i'm playing around with Notify() from gwarble. ( http://www.gwarble.com/ahk/Notify )
But now I'm stuck.
All notifications are stacked which is fine. But if a notication is closed there is a gap.
I would like to move all notifications above the closed one down to close this gap but my autohotkey skills are not good enough to make it work :think: :problem: :thumbdown:

Could someone give me a hint?

Greetings
Rob
gwarble
Posts: 194
Joined: 30 Sep 2013, 15:01

Re: Notify() - Move all open Notifications down on close  Topic is solved

25 Jun 2017, 08:03

Its probably easier to modify Notify() to do it, but to do it script-side you would have to:

Keep track of the gui numbers when creating Notify()s (return value)
also compute the shadow's gui number (probably gui number + 25)
when one is closed (click, timeout, X...), check the location and height of all still visible, and move accordingly

you might be able to use Notify(,,,"Return=GNList") to get the return value of a "|" delimited list of shown Notify()'s that you can parse, but I don't remember exactly

Also, one of my favorite parts of Notify() is that you can create them from any number of scripts and they still stack, so to take that into account you wouldn't want to use return values, you'd want to detect all visible dynamically... They all have a title like "_Notify()_Gui_" or something so you could loop through them all, get their locations and heights, and do the math to see if there are any gaps and move accordingly.


This isn't trivial, but a good idea, I will add it to my to do list to build into Notify().
EitherMouse - Multiple mice, individual settings . . . . www.EitherMouse.com . . . . forum . . . .

Return to “Ask For Help”

Who is online

Users browsing this forum: ameyrick, bballjoe12, Bing [Bot], Google [Bot], Yahoo [Bot] and 39 guests