this post was submitted on 18 Feb 2025
1 points (100.0% liked)

AutoHotkey

1 readers
1 users here now

founded 2 years ago
MODERATORS
 

I would like a TrayTip that one of my scripts puts out to open the same, specific file when clicked, but I see nothing about this in the documentation.

While I'm at it, is there a way to change the height of the tray tip?

top 4 comments
sorted by: hot top controversial new old
[–] Onomatopoeia@lemmy.cafe 2 points 1 week ago* (last edited 1 week ago) (1 children)

Not exactly what you're looking for, but there's an old script in the help files called Favorite Folders that may do what you need, or lead you to a solution.

I'll see if I can find it.

Look in the AHK Help for "Easy Access to Favorite Folders" By Savage.

I've used this script since about 2008, and learned a lot from it.

Another idea - have a separate script running that waits for the Tray Top and it's text, gets the X, Y coordinates, and if there's a click there opens your file. I'm not sure if this will be easy to do or is realistic at all.

[–] Flagstaff@programming.dev 2 points 1 week ago (1 children)

Interesting, never heard of it: https://github.com/wyldphyre/AutoHotKey/blob/master/Deprecated/Easy%20Access%20Folders.ahk

Yeah, I could try to figure out classes or other details about the tray tip window. Thanks!

[–] Onomatopoeia@lemmy.cafe 1 points 1 week ago (1 children)

I've used that script for years now, can't work on a machine without it any more! I'm always changing it for new things that I'm doing. It's brilliant.

[–] Flagstaff@programming.dev 1 points 1 week ago

Was it ever ported to v2?