daily pastebin goal
82%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ToolTip("Text")
  2. ;Text - Text to display
  3. ;XPos - X position of the tooltip
  4. ;YPos - Y position of the tooltip
  5. ;ID - Specify a different number each tooltip, to have multiple tooltips displayed at once
  6.  
  7. ToolTip(Text, XPos = "", YPos = "", ID = 1){
  8.     CoordMode, Mouse, Screen
  9.     MouseGetPos, MouseX, MouseY
  10.     Gui, % (ID + 80) ":Add", Text, x0 y0, %Text%
  11.     Gui, % (ID + 80) ":Show", % "x" (XPos = "" ? MouseX + 10: XPos) "y" (YPos = "" ? MouseY +10: YPos), ToolTip
  12.     WinSet, TransColor, 0xF0F0F0, ToolTip
  13.     Gui, % (ID + 80) ":-Caption +AlwaysOnTop +ToolWindow"
  14. }
RAW Paste Data
Top