Search found 6 matches

by Tomshi
20 Dec 2023, 07:56
Forum: Scripts and Functions (v1)
Topic: Get current explorer window path
Replies: 28
Views: 13443

Re: Get current explorer window path

This function can get the path in Windows 11 tabbed explorer: GetActiveExplorerPath() { hwnd := WinActive("ahk_class CabinetWClass") activeTab := 0 try ControlGet, activeTab, Hwnd,, % "ShellTabWindowClass1", % "ahk_id" hwnd for w in ComObjCreate("Shell.Application").Windows { if (w.hwnd != hwnd) co...
by Tomshi
23 Mar 2023, 04:22
Forum: Scripts and Functions (v2)
Topic: [V2] Tooltip2 to follow mouse with timeout
Replies: 12
Views: 2599

Re: [V2] Tooltip2 to follow mouse with timeout

Simply calling the tooltip function constantly is a bad idea, if the user's mouse coord hasn't changed you can end up with flickering which isn't ideal.
by Tomshi
07 Dec 2022, 00:12
Forum: Ask for Help (v2)
Topic: ToolTip Falows mouse
Replies: 10
Views: 773

Re: ToolTip Falows mouse

I maintain a tooltip class that offers this functionality (and a bit more). Another thing that comes in handy is only redrawing the tooltip if the cursor has actually moved (otherwise you can end up with a flashing tooltip) :)

https://github.com/Tomshiii/ahk/blob/dev/lib/Classes/tool.ahk#L23
by Tomshi
10 Nov 2022, 00:01
Forum: Bug Reports
Topic: [v2-beta.15] TrayMenu - Critical Error: Invalid memory read/write Topic is solved
Replies: 2
Views: 530

[v2-beta.15] TrayMenu - Critical Error: Invalid memory read/write Topic is solved

Attempting to run scripts that contain changes to the tray menu produces a critical error.
I came from beta.13 so went back to check beta.14 and this issue appears to have begun occurring as of beta.14.

image.png
image.png (99.62 KiB) Viewed 530 times
by Tomshi
26 Oct 2022, 22:14
Forum: Ask for Help (v2)
Topic: ToolTip coordinates not working right.
Replies: 6
Views: 750

Re: ToolTip coordinates not working right.

Working as expected for me on beta.12 & multiple monitors - something else might be causing issues. What text are you trying to display?
image.png
image.png (3.66 KiB) Viewed 728 times
by Tomshi
06 Sep 2022, 21:08
Forum: Bug Reports
Topic: [v2-beta.8] FileSelect - Critical Error: Invalid memory read/write Topic is solved
Replies: 8
Views: 1415

[v2-beta.8] FileSelect - Critical Error: Invalid memory read/write Topic is solved

Attempting to use FileSelect with various options results in an "Invalid memory read/write" error. Only the first example in the doc is currently working for example (setting option as 3 appears to be why it works..?) Unsure if a similar error crops up with anything else, this was just the first roa...

Go to advanced search