View Single Post
Old 06-18-2019, 02:44 PM   #314
deeb
Human being with feelings
 
deeb's Avatar
 
Join Date: Feb 2017
Posts: 2,328
Default

reaper.BR_GetMouseCursorContex does not distinguish AI's , can anyone update this?

Code:
function msg(param)
     reaper.ShowConsoleMsg("\n"..tostring(param));
end

reaper.ClearConsole()
--============================================================
function run()
   local window, segment, details = reaper.BR_GetMouseCursorContext() -- reaper.GetCursorContext()
   -- string window retval, string segment, string details reaper.BR_GetMouseCursorContext(string window, string segment, string details, integer char_sz)

  msg("window: "..window.." ::" .. "segment: "..segment.." ::" .."details: "..details )
 
  reaper.defer(run)
end

function onexit()
 msg(">script ended\n")
end

reaper.defer(run)
reaper.atexit(onexit)
deeb is online now   Reply With Quote