Skip to content

Feature request: disable line logging #3

@xypha

Description

@xypha

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions