View Single Post
Old 10-19-2019, 08:51 AM   #2
dsyrock
Human being with feelings
 
dsyrock's Avatar
 
Join Date: Sep 2018
Location: China
Posts: 565
Default

This seems to work

Code:
x,y=reaper.GetMousePosition()
reaper.TrackCtl_SetToolTip("hello", x, y, false)
h=reaper.GetTooltipWindow()
time=os.time()

function countdown()
  local check=os.time()
  if check-time>=2 then  --close the tooltip after 2 seconds
    reaper.TrackCtl_SetToolTip("", x, y, false)
  else
      reaper.defer(countdown)
  end
end
countdown()
Maybe give it an empty content can somehow close it.
dsyrock is online now   Reply With Quote