Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Feature Requests

Reply
 
Thread Tools Display Modes
Old 06-11-2018, 03:32 AM   #1
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default MIDIEditor_GetSetting_int: Return window client area coordinates [DONE in extension]

In order for scripts to

1) accurately track mouse movement over the MIDI editor and determine the part of the MIDI editor under the mouse, the CC value, etc, and

2) accurately position script GUIs over the editor,

scripts need access to the exact screen coordinates of the MIDI editor client area.



The item state chunk CFGEDIT field cannot be used, since it only gives the coordinates of the last-used UNmaximized size and position (and also includes the window frame).

It would therefore be very helpful if MIDIEditor_GetSetting_int could return these coordinates. Either all four numbers together, or separately, each with its own "setting_desc".

Code:
integer reaper.MIDIEditor_GetSetting_int(HWND midieditor, string setting_desc)

Last edited by juliansader; 10-20-2018 at 09:38 AM.
juliansader is offline   Reply With Quote
Old 06-11-2018, 06:08 AM   #2
reapero
Human being with feelings
 
Join Date: Aug 2011
Posts: 517
Default

Amen!!
reapero is offline   Reply With Quote
Old 06-15-2018, 10:26 AM   #3
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Another option would be for MIDIEditor_GetSetting_str to return all four coordinates as a csv (comma separated) string.
juliansader is offline   Reply With Quote
Old 06-15-2018, 05:20 PM   #4
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Devs, please give the man what he needs! His midi scripts are awesome!!!
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 06-24-2018, 11:29 AM   #5
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

I brushed up on my C++ and managed to add a few functions to SWS that can return all the necessary coordinates.
juliansader is offline   Reply With Quote
Old 06-25-2018, 05:17 AM   #6
reapero
Human being with feelings
 
Join Date: Aug 2011
Posts: 517
Default

Yay! You rock!
reapero is offline   Reply With Quote
Reply

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 06:44 AM.


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