Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

[AHL_L/v2] TT() - Full-blown ToolTip Library


  • Please log in to reply
197 replies to this topic
HotKeyIt
  • Moderators
  • 7439 posts
  • Last active: Jun 22 2016 09:14 PM
  • Joined: 18 Jun 2008
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.



ynuance
  • Members
  • 12 posts
  • Last active: Mar 12 2017 08:32 AM
  • Joined: 02 Jan 2013

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.



HotKeyIt
  • Moderators
  • 7439 posts
  • Last active: Jun 22 2016 09:14 PM
  • Joined: 18 Jun 2008

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
}