PleasantNotify() - Beautiful popup msg, tooltip

Post your working scripts, libraries and tools for AHK v1.1 and older
User avatar
Relayer
Posts: 160
Joined: 30 Sep 2013, 13:09
Location: Delaware, USA

Re: PleasantNotify() - Beautiful popup msg, tooltip

23 Jan 2015, 19:41

I may have spoke too soon. I think a "typo" allowed my example to work. I'll keep looking at it.

Relayer
User avatar
Soft
Posts: 174
Joined: 07 Jan 2015, 13:18
Location: Seoul
Contact:

Re: PleasantNotify() - Beautiful popup msg, tooltip

23 Jan 2015, 22:58

@evil looks awesome
wanna test your code!! too sad I'm not home yet
AutoHotkey & AutoHotkey_H v1.1.22.07
User avatar
huyaowen
Posts: 109
Joined: 28 Jul 2014, 01:15

Re: PleasantNotify() - Beautiful popup msg, tooltip

26 Jan 2015, 03:09

1.PN must work with SLEEP.
It will flash a glance without Sleep.

2.Could i change the background color or set a border line to the dialog.
User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: PleasantNotify() - Beautiful popup msg, tooltip

26 Jan 2015, 11:13

I am starting to think that there is a new and very useful application for your lib.
I am working on some code at the moment that seems to behave differently if you pause to debug (msgboxes, debugger stepping etc).

What would be nice to have would be something like your lib, but with the following enhancements:

You can set it so one window holds all notifications.
When a notification comes in, it appears in the notification window, and there is some way to scroll through the messages, dismiss them etc (ListView to select message, close buttons etc).

That's basically it.
Thoughts?
I know how to do everything required, so it's certainly possible.

Yeah there are ways to have windows for the error log and such, but I think this idea could have it's own merits.

Thoughts?
User avatar
Soft
Posts: 174
Joined: 07 Jan 2015, 13:18
Location: Seoul
Contact:

Re: PleasantNotify() - Beautiful popup msg, tooltip

26 Jan 2015, 23:45

@huyaowen
1. for me its working fine without sleep
2. you can! change line 'gui, color, bla bla ' to your preferred color

@evilC
sounds really interesting!
what about sliding the msg or dragout from notification window to erase the message?
notification window you mean is taskbar?
AutoHotkey & AutoHotkey_H v1.1.22.07
User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: PleasantNotify() - Beautiful popup msg, tooltip

27 Jan 2015, 02:21

I suppose it could have it's own taskbar icon, but that isn't really that important I don't think.
Just as it is now, but allow all messages to appear in the same popup, and you can scroll through them somehow by clicking something in the popup.

So basically the popup window has two elements:
The notification list (A Listview) which lists all the notifications that have fired.
A notification area that displays the message.

When you select a notification from the listview, it appears in the notification area, along a button to cancel that notification.
User avatar
huyaowen
Posts: 109
Joined: 28 Jul 2014, 01:15

Re: PleasantNotify() - Beautiful popup msg, tooltip

28 Jan 2015, 01:45

@soft
Would you like add a parameter for background color?
User avatar
Soft
Posts: 174
Joined: 07 Jan 2015, 13:18
Location: Seoul
Contact:

Re: PleasantNotify() - Beautiful popup msg, tooltip

28 Jan 2015, 10:30

@huyaowen / well.. I dont really feel necessity for color parameter right now. and maybe because I dont want to make the fucntion to be complicated..

@ghg / Do you think it should exit?
AutoHotkey & AutoHotkey_H v1.1.22.07
User avatar
boiler
Posts: 16902
Joined: 21 Dec 2014, 02:44

Re: PleasantNotify() - Beautiful popup msg, tooltip

28 Jan 2015, 11:01

FYI - To me, it would be much more useful with color parameters -- both background and foreground colors (separate title and main message colors).
zotune
Posts: 85
Joined: 17 Nov 2014, 17:57

Re: PleasantNotify() - Beautiful popup msg, tooltip

30 Jan 2015, 07:13

I would use this instead of Notify() if it could:
1. Expand height to amount of text
2. Have font size presets in function
3. You can click it away

Great job though, looks really good.
User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: PleasantNotify() - Beautiful popup msg, tooltip

30 Jan 2015, 09:32

Soft wrote:@huyaowen / well.. I dont really feel necessity for color parameter right now. and maybe because I dont want to make the fucntion to be complicated..

@ghg / Do you think it should exit?
If you are using my class based version, adding such a feature would probably be pretty easy, and optional, so it would not needlessly complicate basic usage.

I would allow the user to not specify time at creation, thus allowing the user to modify the notify before it gets activated.

Code: Select all

;new PleasantNotify("PleasantNotify", "position t hc" , 600, 210, "t hc", 3)

n := new PleasantNotify("PleasantNotify", "position t hc" , , , "t hc", 3)
n.TextColor := "#FF0000"
n.background := "#000000"
n.time := [600,210]
n.activate()
What may be a lot easier would be to add an extra "options" field that accepts an object, or can be left blank for default.

Code: Select all

new PleasantNotify("PleasantNotify", "position t hc" , , , "t hc", 3, {TextColor := "#FF0000", background := "#000000"})
Hell, I would get rid of the position fields and just set them with an object. If a func has lots of params, it is often easier to use an object, that way people only need to remember words, not the order. It also makes it easier for new people to understand what each param does.
eg:

Code: Select all

new PleasantNotify({title: "PleasantNotify", pos: "t hc" , after: 600 , duration: 200 ,text: "t hc", something: 3, TextColor := "#FF0000", background := "#000000"})
User avatar
huyaowen
Posts: 109
Joined: 28 Jul 2014, 01:15

Re: PleasantNotify() - Beautiful popup msg, tooltip

02 Feb 2015, 00:33

evilC wrote:
Relayer wrote:evilC,

The bind() function works just fine in v1.1.16.05

Relayer
And GuiControl +g, OK, %fn%, SetTimer %fn%, % time * -1000?
:o
Attachments
swssss.jpg
User avatar
Soft
Posts: 174
Joined: 07 Jan 2015, 13:18
Location: Seoul
Contact:

Re: PleasantNotify() - Beautiful popup msg, tooltip

08 Feb 2015, 22:38

Currently, Im porting this project to GDI+ but having problem in adjusting the transparency of the gdi canvas

winset and Dllcall with AnimateWindow only changes the original ahk gui, not the updated, rounded gdi canvas
if anyone knows how to adjust the transparaency of the gdi canvas, please let me know
http://ahkscript.org/boards/viewtopic.php?f=5&t=6335
AutoHotkey & AutoHotkey_H v1.1.22.07
User avatar
Capbat
Posts: 101
Joined: 17 May 2014, 13:33
Location: Québec Canada

Re: PleasantNotify() - Beautiful popup msg, tooltip

09 Feb 2015, 14:48

Hi Soft Nice Work! :clap:

Nice Splash, I was looking for something like that at the start of one of my application.
It would be nice if we could insert images, pictures, or logos in the message and have a way to position them.
Or would that mean a complete make over?

Thanks.

Bat
User avatar
empardopo
Posts: 336
Joined: 06 Oct 2013, 12:50
Location: Spain
Contact:

Re: PleasantNotify() - Beautiful popup msg, tooltip

10 Feb 2015, 03:05

It would be awesome with images added!!!!
Thanks!
Everything is possible!
User avatar
Soft
Posts: 174
Joined: 07 Jan 2015, 13:18
Location: Seoul
Contact:

Re: PleasantNotify() - Beautiful popup msg, tooltip

10 Feb 2015, 09:22

ok I will add when I have time to work!
I got too busy, my school just began
AutoHotkey & AutoHotkey_H v1.1.22.07
User avatar
empardopo
Posts: 336
Joined: 06 Oct 2013, 12:50
Location: Spain
Contact:

Re: PleasantNotify() - Beautiful popup msg, tooltip

10 Feb 2015, 09:32

Soft wrote:ok I will add when I have time to work!
I got too busy, my school just began
Thanks!
Everything is possible!
dccostac
Posts: 24
Joined: 21 Jul 2016, 14:04

Re: PleasantNotify() - Beautiful popup msg, tooltip

14 Dec 2016, 17:59

evilC wrote:
Soft wrote: [/code]
Hi sir,

How would you display an actual timer for the 3 second duration on your beautiful splash notifier?

And also how can you add an image to it ?(background)

[AHK knowledge limited, just want to add a timer and a background to it for the duration the splash is being displayed]

Thank you in advance.

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: hiahkforum and 69 guests