New script command: tooltip

Features wanted...
highend
Posts: 14955
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

New script command: tooltip

Post 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
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

klownboy
Posts: 4462
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: New script command: tooltip

Post 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.

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: New script command: tooltip

Post by SkyFrontier »

+2, AHK, too cumbersome too...
Free choice of icons, please. Visual cues will make a difference here.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

admin
Site Admin
Posts: 66365
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: New script command: tooltip

Post 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.

highend
Posts: 14955
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: New script command: tooltip

Post by highend »

Approx. time frame?

Otherwise I'll write a custom tool to get that behavior earlier...
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66365
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: New script command: tooltip

Post by admin »

Write the custom tool... :)

highend
Posts: 14955
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: New script command: tooltip

Post by highend »

Ok
One of my scripts helped you out? Please donate via Paypal

jupe
Posts: 3462
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: New script command: tooltip

Post 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.

admin
Site Admin
Posts: 66365
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: New script command: tooltip

Post by admin »

admin wrote:Write the custom tool... :)
Well, it might come faster than I first thought... take a break. :beer:

admin
Site Admin
Posts: 66365
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: New script command: tooltip

Post 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. :evil: I'll continue trying today, justed wanted to let you know that it takes a little longer (with the option of: forever).

highend
Posts: 14955
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: New script command: tooltip

Post 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
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66365
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: New script command: tooltip

Post 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...

highend
Posts: 14955
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: New script command: tooltip

Post by highend »

XY poses a hostile environment for balloons
<- hands over a needle :whistle:
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66365
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: New script command: tooltip

Post by admin »

:biggrin:

admin
Site Admin
Posts: 66365
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: New script command: tooltip

Post by admin »

Got it. Next beta with balloons... watch your needles.

Post Reply