The default AHK's tooltip is ugly and cannot be customized, nor can it be used as a tip for GUI controls, so I wrote this library.
Some colors and styles that can be set, such as: fontOption, backgroundColor, textColor, borderColor, roundedConner, shape, etc. If you don't want to customize, MsgTip will follow the system theme(dark or light).
Put MsgTip.ahk to you lib folder.
If you want to use it as screen tootip.
#Include <MsgTip>
tip := MsgTip(timeout := 5000, { bgColor: 0x15161f, textColor: 0x91a3ff, marginsVal: [20, 20, 20, 20] })
tipContent := {name: "v", age: 20, skills: Map(1, "cpp", 2, "python", 3, "typescript")}
tip.ShowScreenTip(tipContent, timeout := 3000)Or show a tip to your gui control.
#Include <MsgTip>
tip := MsgTip(timeout:=2000)
tmpGui := Gui()
btn := tmpGui.AddButton("w220 h50", "Hover it")
btn.AddTip("Hi! I am a btn")
tmpGui.Show()