View Single Post
Old 08-19-2011, 12:35 PM   #217
G__ROW
Human being with feelings
 
Join Date: Oct 2010
Posts: 7
Default

Still no go I even tried doing "Track: Select last touched track 40505" after set first sel to last touched.

m_pREAPER->SetTrackSelected(m_pREAPER->CSurf_TrackFromID(nIndex, true), true);
m_pREAPER->Main_OnCommand(40914, 0); // set first sel to last touched
m_pREAPER->Main_OnCommand(40505, 0); // select last touched
m_pREAPER->Main_OnCommand(40194, 0); // open MIDI editor

I did notice that the selected track doesn't seem to change until after the MIDI window opens. I'm not sure if this is just a latency issue while rendering. I did try adding a Sleep() after I set the selected track, but that didn't seem to help.
G__ROW is offline   Reply With Quote