-
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
In below example,
using hotkey !r
fills up the script's main window with a lot of lines from SystemThemeAwareToolTip.ahk
I have tried to minimize this with a workaround (see modification below example script),
but it doesn't work perfectly.
If there is a better method, please add ability to disable line logging to SystemThemeAwareToolTip.ahk
and Dark_MsgBox.ahk
Example AHK v2 script -
#Include <SystemThemeAwareToolTip>
!r:: {
ToolTip "Timed ToolTip`nThis will be displayed for 5 seconds."
SetTimer () => ToolTip(), -5000
Listlines
}
Modify SystemThemeAwareToolTip.ahk
by adding ListLines 0
and ListLines 1
as seen below -
TT_WNDPROC(hWnd, uMsg, wParam, lParam)
{
ListLines 0 ; Omit subsequently-executed lines from the history
static WM_CREATE := 0x0001
if (this.IsDarkMode && uMsg = WM_CREATE)
{
SetDarkToolTip(hWnd)
if (VerCompare(A_OSVersion, "10.0.22000") > 0)
SetRoundedCornor(hWnd, 3)
}
ListLines 1 ; Include subsequently-executed lines in the history
return DllCall(This.OriWndProc, "Ptr", hWnd, "UInt", uMsg, "Ptr", wParam, "Ptr", lParam, "UInt")
}
Metadata
Metadata
Assignees
Labels
No labels