TT:=TT(1) Gui,Add,Edit TT.Add("Edit1","AutoHotkey") TT.SETDELAYTIME(2,10000) Gui,Show Return GuiClose: ExitApp
0 = TTDT_AUTOMATIC, 1 = TTDT_RESHOW, 2 = TTDT_AUTOPOP, 3 = TTDT_INITIAL.
TT:=TT(1) Gui,Add,Edit TT.Add("Edit1","AutoHotkey") TT.SETDELAYTIME(2,10000) Gui,Show Return GuiClose: ExitApp
0 = TTDT_AUTOMATIC, 1 = TTDT_RESHOW, 2 = TTDT_AUTOPOP, 3 = TTDT_INITIAL.
hello,
can the OnClose function to do things after clicking the closebutton?
TT:=TT("CloseButton OnClose=TT_Msg","Text here","Title") TT.Show() Exit TT_Msg(option,Tool){ MsgBox, 111111111111 }
I tried the code above ,but no message box pops up.
You can close the tooltip
TT:=TT("CloseButton OnClose=TT_Msg","Text here","Title") TT.Show() Exit TT_Msg(TT,option){ TT.Close() MsgBox, 111111111111 }
Or use SetTimer
TT:=TT("CloseButton OnClose=TT_Msg","Text here","Title") TT.Show() Exit TT_Msg(TT,option){ SetTimer,Action,-1 Return Action: MsgBox, 111111111111 Return }