Skip to content

Tray menu and tooltips don't appear unless AHK executor is "stimulated"#274

Description

@KyleTheScientist

describe your issue

Sorry for being so obsessed with tray icons 馃槄

I noticed that unless I am continuously calling some function from an AHK object, tooltips and the tray icon right-click menu do not appear.

Thanks for your consideration.

ahk.version

1.5.2

AutoHotkey version

v1

Code to reproduce the issue

from ahk import AHK
from ahk.directives import NoTrayIcon
from time import sleep

ahk = AHK()
ahk.menu_tray_tooltip('The problematic one')

def show_tooltip():
    print('Showing tooltip')
    ahk.hide_tooltip()
    ahk.show_tooltip('Hello, world!')

ahk.add_hotkey('~t', show_tooltip) # Press T to bring up the tooltip
ahk.start_hotkeys()

while True:
    ahk.get_mouse_position() # I can't right click the tray icon unless this line is uncommented

    # This framerate of the tooltip fade-in animation is capped by how often the mouse position is checked
    sleep(1)

Traceback/Error message

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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