Prev Previous Post   Next Post Next
Old 06-23-2019, 08:56 AM   #11
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,685
Default

Still did not find the solution, same issue even with reaper.JS_WindowMessage_Intercept.

It responds only after second mouse click, just like modifiers

Code:
local reaper_cursors =  {
                          {187,"MOVE"},  -- MOVE
                          {185,"DRAW"},  -- DRAW
                          {417,"EDGE L"},  -- LEFT EDGE
                          {418,"EDGE R"},  -- RIGHT EDGE
                          {184,"FADE L"},  -- FADE RIGHT
                          {105,"FADE R"},   -- FADE LEFT
                        }

function project_mouse_info()
    local cur_cursor = reaper.JS_Mouse_GetCursor()
    for i = 1, #reaper_cursors do
        local cursor = reaper.JS_Mouse_LoadCursor( reaper_cursors[i][1] )
        if cur_cursor == cursor then
          return reaper_cursors[i][2]
        end
    end
end

local detail = project_mouse_info()
if detail == "EDGE L" or detail == "EDGE R" then
              reaper.JS_WindowMessage_Intercept(track_window, "WM_LBUTTONDOWN", false)
            elseif not mouse.detail then
              reaper.JS_WindowMessage_PassThrough(track_window, "WM_LBUTTONDOWN", false)
            end
Anyone has some ideas?Am I doing something wrong?
Sexan is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:46 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.