View Single Post
Old 04-05-2008, 05:15 PM   #16
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by Deric View Post

SendMessage(g_hwnd,WM_COMMAND,IsKeyDown(VK_SHIFT)? ID_INSERT_MARKERRGN:ID_INSERT_MARKER,0)
Try changing that to :

SendMessage(g_hwnd,WM_COMMAND,40291,0);

(40291 here being the command number for view fx chain for current track.)

SendMessage is basically another way to make Reaper to execute commands. (It's a Windows function that sends messages to the window here spesified by g_hwnd). g_hwnd sort of being the variable for Reaper etc here...I forgot about this method of executing commands, sorry, as I thought Main_OnCommand could be a bit cleaner etc...
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.

Last edited by Xenakios; 04-05-2008 at 05:20 PM.
Xenakios is offline   Reply With Quote