Sie sind auf Seite 1von 2

--[[ useful

reaper.reaper.Main_OnCommand(65535, 0)
reaper.Main_OnCommand(reaper.NamedCommandLookup("_S&M_MOUSE_L_CLICK"), 0)
--]]

-- Call BR_GetMouseCursorContext API from SWS to get current details for stuff
under mouse cursor
extension_api("BR_GetMouseCursorContext", #window, #segment, #details, 128)
-- If mouse is over TCP track, execute this
if !strcmp(#window, "tcp") && !strcmp(#segment, "track") then
-- If mouse is over empty tcp, execute this
elseif !strcmp(#window, "tcp") && !strcmp(#segment, "empty") then
-- If mouse is over ECP , execute this
elseif !strcmp(#window, "tcp") && !strcmp(#segment, "envelope") then

-- If mouse is over region lane , execute this


elseif !strcmp(#window, "ruler") && !strcmp(#segment, "region_lane") then
-- If mouse is over Marker lane , execute this
elseif !strcmp(#window, "ruler") && !strcmp(#segment, "marker_lane") then
-- If mouse is over Tempo lane , execute this
elseif !strcmp(#window, "ruler") && !strcmp(#segment, "tempo_lane") then
-- If mouse is over Timeline , execute this
elseif !strcmp(#window, "ruler") && !strcmp(#segment, "timeline") then

-- If mouse is over Transport , execute this


elseif !strcmp(#window, "Transport") then

-- If mouse is over MCP Track , execute this


elseif !strcmp(#window, "mcp") && !strcmp(#segment, "track") then
-- If mouse is over MCP Track , execute this
elseif !strcmp(#window, "mcp") && !strcmp(#segment, "empty") then
-- If mouse is over arrange empty, execute this

elseif !strcmp(#window, "arrange") && !strcmp(#segment, "track") && !


strcmp(#details, "empty") then
-- If mouse is over an item, execute this
elseif !strcmp(#window, "arrange") && !strcmp(#segment, "track") && !
strcmp(#details, "item") then
-- If mouse is over an item stretch marker, execute this
elseif !strcmp(#window, "arrange") && !strcmp(#segment, "track") && !
strcmp(#details, "item_stretch_marker") then
-- If mouse is over an envelope point in the track lane, execute this
elseif !strcmp(#window, "arrange") && !strcmp(#segment, "track") && !
strcmp(#details, "env_point") then
-- If mouse is over an envelope segment in the track lane, execute this
elseif !strcmp(#window, "arrange") && !strcmp(#segment, "track") && !
strcmp(#details, "env_segment") then
-- If mouse is over an empty envelope, execute this
elseif !strcmp(#window, "arrange") && !strcmp(#segment, "envelope") && !
strcmp(#details, "empty") then
-- If mouse is over an envelope point, execute this
elseif !strcmp(#window, "arrange") && !strcmp(#segment, "envelope") && !
strcmp(#details, "env_point") then
-- If mouse is over an envelope segment, execute this
elseif !strcmp(#window, "arrange") && !strcmp(#segment, "envelope") && !
strcmp(#details, "env_segment") then
-- If mouse is over an empty arrange area, execute this
elseif !strcmp(#window, "arrange") && !strcmp(#segment, "empty") then
-- If mouse is over MIDI Editor Ruler, execute this
elseif !strcmp(#window, "midi_editor") && !strcmp(#segment, "ruler") then
-- If mouse is over MIDI Editor Piano, execute this
elseif !strcmp(#window, "midi_editor") && !strcmp(#segment, "piano") then
-- If mouse is over MIDI Editor Notes, execute this
elseif !strcmp(#window, "midi_editor") && !strcmp(#segment, "notes") then
-- If mouse is over MIDI CC selector, execute this
elseif !strcmp(#window, "midi_editor") && !strcmp(#segment, "cc_lane") && !
strcmp(#details, "cc_selector") then
-- If mouse is over MIDI CC lane, execute this
elseif !strcmp(#window, "midi_editor") && !strcmp(#segment, "cc_lane") && !
strcmp(#details, "cc_lane") then

Das könnte Ihnen auch gefallen