Page 1 of 5
New script command: tooltip
Posted: 02 Aug 2018 08:05
by highend
For longer running scripts or for a more noticeable visualization of what happens / has happened
a tray icon tooltip would be a very cool addition! The status bar is normally fine but it get's overwritten
so easily that it's not always the perfect way...
Code: Select all
tooltip message, [title], [timeout=2000], [icon=info]
message = The message to display.
title = The title to display.
timeout = How long should the tooltip be displayed (in milliseconds). Default = 2000.
icon = Which icon to display. E.g.: ERROR, INFO, USER, WARNING. Default = INFO.
This is how it could look like:
tray.png
Re: New script command: tooltip
Posted: 02 Aug 2018 13:10
by klownboy
+ 1 A timed tooltip would be a useful addition to scripting and I believe it was asked for previously. I did some timed VB messages in a few scripts but they're too cumbersome.
Re: New script command: tooltip
Posted: 03 Aug 2018 03:23
by SkyFrontier
+2, AHK, too cumbersome too...
Free choice of icons, please. Visual cues will make a difference here.
Re: New script command: tooltip
Posted: 27 Aug 2018 11:47
by admin
I'm planning to add this to Custom Copy anyway (optionally, to inform about a completed operation). When that's done it will be easy to add a scripting command.
Re: New script command: tooltip
Posted: 27 Aug 2018 12:08
by highend
Approx. time frame?
Otherwise I'll write a custom tool to get that behavior earlier...
Re: New script command: tooltip
Posted: 27 Aug 2018 12:40
by admin
Write the custom tool...

Re: New script command: tooltip
Posted: 27 Aug 2018 13:50
by highend
Ok
Re: New script command: tooltip
Posted: 27 Aug 2018 15:40
by jupe
If it is only for personal use, I use this:
http://nircmd.nirsoft.net/trayballoon.html
It integrates nicely in Win10 action center too.
Re: New script command: tooltip
Posted: 27 Aug 2018 19:00
by admin
admin wrote:Write the custom tool...

Well, it might come faster than I first thought... take a break.

Re: New script command: tooltip
Posted: 29 Aug 2018 10:13
by admin
Weird, although it should work it does not. There are millions of code samples in the web, this is not rocket science. No error messages, but the damn balloon does not rise.

I'll continue trying today, justed wanted to let you know that it takes a little longer (with the option of: forever).
Re: New script command: tooltip
Posted: 29 Aug 2018 11:12
by highend
Thanks jupe, but I for myself e.g. like to have support for .png files. nircmd doesn't offer that
No error messages, but the damn balloon does not rise.
Mh, works fine here. cbSize for NOTIFYICONDATA_ is correct for the Windows version you're trying it on?
E.g. on Vista+ it's the size of the whole structure, while on older versions the size depends on structure entries
Re: New script command: tooltip
Posted: 29 Aug 2018 11:40
by admin
I know, I read everything about it and tried everything. I have a small test program here where it works, and the same code does not work in XY. so XY poses a hostile environment for balloons. But how? Still meditating...
Re: New script command: tooltip
Posted: 29 Aug 2018 11:50
by highend
XY poses a hostile environment for balloons
<- hands over a needle

Re: New script command: tooltip
Posted: 29 Aug 2018 11:56
by admin
Re: New script command: tooltip
Posted: 29 Aug 2018 14:34
by admin
Got it. Next beta with balloons... watch your needles.