GUIOnEventMode = 0 + TrayOnEventMode = 1 ... geht das ?

  • Ja, das geht

    Beim eventmode läuft erstmal keine Schleife. Die muss du selber starten. Und in der Schleife kann dann natürlich von nerGUI/Tray ohne Eventmode die msg abgefragt werden.
    Das geht:

    Spoiler anzeigen

    1)

    [autoit]


    GuiOnEvent = 0
    TrayOnEvent = 1
    ...
    While 1
    $msg =GUIGetMsg()
    ...
    WEnd
    ...
    Func _TrayOnEventFuncs()
    EndFunc
    ...

    [/autoit]


    2)

    [autoit]


    GuiOnEvent = 1
    TrayOnEvent = 0
    ...
    While 1
    $msg = TrayGetMsg()
    ...
    WEnd
    ...
    Func _GUIOnEventFuncs()
    EndFunc
    ...

    [/autoit]


    3)

    [autoit]


    GuiOnEvent = 0
    TrayOnEvent = 0
    ...
    While 1
    $Traymsg = TrayGetMsg()
    ...
    $GUImsg = GUIGetMsg()
    ...
    WEnd
    ...

    [/autoit]


    4)

    [autoit]


    GuiOnEvent = 1
    TrayOnEvent = 1
    ...
    While 1
    Sleep(10)
    WEnd
    ...
    Func _GUIOnEventFuncs()
    EndFunc
    ...
    ...
    Func _TrayOnEventFuncs()
    EndFunc
    ...

    [/autoit]