[lib] Tippy -- Multiple ToolTips which follow mouse

Post your working scripts, libraries and tools for AHK v1.1 and older
TheBestPessimist
Posts: 21
Joined: 08 Apr 2018, 02:14

[lib] Tippy -- Multiple ToolTips which follow mouse

01 May 2019, 11:35

Hello,

I created a ToolTip library which can show multiple tooltips that follow the mouse.
Multiple ToolTips are stacked vertically, so no information is hidden, and they can be displayed for a configurable amount of time.

The library is found here: https git.tbp.land /AutoHotKey-Scripts/blob/master/lib/Tippy.ahk Broken Link for safety

The usage is really simple:

- At the top of your scripts include the ahk file:

Code: Select all

#include lib/Tippy.ahk
- When you want to show a ToolTip, call the function with the text you want to show:

Code: Select all

Tippy("Text to show")
- When you want to set a particular duration or show a specific tooltip you pass multiple parameters:

Code: Select all

Tippy("ToolTip text", 4000, 1) ; text, duration and a unique tooltip number
There also is a bigger example at the bottom of the library.

If you find this library useful or have feedback on how to improve it i'm more than happy to hear it!
Last edited by TheBestPessimist on 13 Aug 2020, 04:42, edited 5 times in total.
User avatar
elModo7
Posts: 217
Joined: 01 Sep 2017, 02:38
Location: Spain
Contact:

Re: [lib] Tippy -- Multiple ToolTips which follow mouse

02 May 2019, 10:23

Seems useful, thanks for sharing!
It does indeed perform better than the default behaviour.
TheBestPessimist
Posts: 21
Joined: 08 Apr 2018, 02:14

Re: [lib] Tippy -- Multiple ToolTips which follow mouse

02 May 2019, 11:08

Hello @elModo7 and thanks for checking it out :) !

I just found a bug where it doesn't work properly when having multiple monitors, but i'll fix that and push to the repo soon.
User avatar
elModo7
Posts: 217
Joined: 01 Sep 2017, 02:38
Location: Spain
Contact:

Re: [lib] Tippy -- Multiple ToolTips which follow mouse

02 May 2019, 11:13

TheBestPessimist wrote:
02 May 2019, 11:08
Hello @elModo7 and thanks for checking it out :) !

I just found a bug where it doesn't work properly when having multiple monitors, but i'll fix that and push to the repo soon.
Waiting to check it out man, thanks!
TheBestPessimist
Posts: 21
Joined: 08 Apr 2018, 02:14

Re: [lib] Tippy -- Multiple ToolTips which follow mouse

02 May 2019, 11:24

I dont' have dual screen so i cant test it tho :)).
User avatar
elModo7
Posts: 217
Joined: 01 Sep 2017, 02:38
Location: Spain
Contact:

Re: [lib] Tippy -- Multiple ToolTips which follow mouse

02 May 2019, 11:28

TheBestPessimist wrote:
02 May 2019, 11:24
I dont' have dual screen so i cant test it tho :)).
I can test it, it's okey.
TheBestPessimist
Posts: 21
Joined: 08 Apr 2018, 02:14

Re: [lib] Tippy -- Multiple ToolTips which follow mouse

02 May 2019, 12:15

Pushed. You can test again by moving the cursor in lower right portion of both screens and see if the tooltip moves away.
User avatar
elModo7
Posts: 217
Joined: 01 Sep 2017, 02:38
Location: Spain
Contact:

Re: [lib] Tippy -- Multiple ToolTips which follow mouse

03 May 2019, 15:17

TheBestPessimist wrote:
02 May 2019, 12:15
Pushed. You can test again by moving the cursor in lower right portion of both screens and see if the tooltip moves away.
Will have to test on monday, I don't use two monitors at home :/
Ridwan
Posts: 144
Joined: 17 Oct 2015, 21:06
Location: Indonesia

Re: [lib] Tippy -- Multiple ToolTips which follow mouse

04 May 2019, 11:00

:shock: Wooow, must have tool for debugging, especially the stack feature.
Thank you for sharing

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: TAC109 and 125 guests