ToolTip() not working if window is minimized (possibly if otherwise hidden/invisible)

Issue #95 closed
Winter Laite created an issue

AHK script - ToolTip is triggered whether GUI is minimized or not.

MyGui := Gui(, "Tooltip Madness")
ttBtn := MyGui.Add("Button", "x10", "Trigger a tooltip in a function")
ttBtn.OnEvent("Click", DriveMeNuts)
MyGui.Show()

^!]::
{
    DriveMeNuts()
}


DriveMeNuts(*) {
    DetectHiddenWindows(True)
    ToolTip("Will this work?")
    Sleep(1000)
    ToolTip()
    DetectHiddenWindows(False)
}

Keysharp works, but only if GUI is not minimized.

MyGui := Gui(, "Tooltip Madness")
ttBtn := MyGui.Add("Button", "x10", "Trigger a tooltip in a function")
ttBtn.OnEvent("Click", "DriveMeNuts")
MyGui.Show()

^!]::
{
    DriveMeNuts()
}


DriveMeNuts() {
    DetectHiddenWindows(True)
    ToolTip("Will this work?")
    Sleep(1000)
    ToolTip()
    DetectHiddenWindows(False)
}

Comments (3)

  1. Log in to comment