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

Reply
 
Thread Tools Display Modes
Old 08-05-2018, 04:10 PM   #1
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,719
Default Arming Toolbar Icons buttons with keyboard shortcuts

Hi all,

Being able to change the state of the Toolbar Icon ("arming the button") as if we Right-Clicked on it (for example to change the mouse behavior like a mouse tool).

To be able to do what I did in this video without having to actually click on the Icon... just use a short cut:



Thanks.
__________________
Cheers... Andrew K
Reaper v6.80+dev0621 - June 21 2023 • Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.

Last edited by Thonex; 08-06-2018 at 12:01 AM.
Thonex is offline   Reply With Quote
Old 08-05-2018, 06:30 PM   #2
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

There is Toolbar: Press active toolbar button 01, but it can be a little fishy about which one is "active".
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote
Old 08-05-2018, 06:33 PM   #3
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Alternatively, a script could parse reaper-menu.ini for a given toolbar's actions and then you could always have buttons for whichever one you want. The format is pretty friendly:

Code:
[Floating toolbar 1]
icon_1=text_wide
icon_3=toolbar_envelope_insert_four.png
icon_4=toolbar_item_selection_remove_contents_move_later.png
icon_5=toolbar_item_insert_move_space.png
icon_7=toolbar_audio_waveform_transient_dynamic_split.png
item_0=-1
item_1=41106 Editing:
item_2=-1
item_3=40726 Envelope: Insert 4 envelope points at time selection
item_4=40201 Time selection: Remove contents of time selection (moving later items)
item_5=40200 Time selection: Insert empty space at time selection (moving later items)
item_6=-1
item_7=40760 Item: Dynamic split items...
(The -1s are separators)
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote
Old 08-05-2018, 06:48 PM   #4
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,719
Default

Quote:
Originally Posted by Lokasenna View Post
Alternatively, a script could parse reaper-menu.ini for a given toolbar's actions and then you could always have buttons for whichever one you want. The format is pretty friendly:

Code:
[Floating toolbar 1]
icon_1=text_wide
icon_3=toolbar_envelope_insert_four.png
icon_4=toolbar_item_selection_remove_contents_move_later.png
icon_5=toolbar_item_insert_move_space.png
icon_7=toolbar_audio_waveform_transient_dynamic_split.png
item_0=-1
item_1=41106 Editing:
item_2=-1
item_3=40726 Envelope: Insert 4 envelope points at time selection
item_4=40201 Time selection: Remove contents of time selection (moving later items)
item_5=40200 Time selection: Insert empty space at time selection (moving later items)
item_6=-1
item_7=40760 Item: Dynamic split items...
(The -1s are separators)
Ok... I'll delve into this a little later then. Hopefully this won't feel like umpteen layers of abstraction

Thanks again Loka!!
__________________
Cheers... Andrew K
Reaper v6.80+dev0621 - June 21 2023 • Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.
Thonex is offline   Reply With Quote
Old 08-05-2018, 06:59 PM   #5
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Actually, once I looked into the .ini I realized how straightforward a script would be (in theory), so I might be working on something.

AFAIK there's no way for a script or action to "arm" a button like you can with right-clicking, so there's definitely room for an FR there.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote
Old 08-05-2018, 07:06 PM   #6
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

I documented the reaper-menu.ini. Maybe that'll help to go deeper:

http://mespotine.de/Ultraschall/File...eaper-menu.ini
Meo-Ada Mespotine is offline   Reply With Quote
Old 08-05-2018, 07:11 PM   #7
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,719
Default

Quote:
Originally Posted by Lokasenna View Post
AFAIK there's no way for a script or action to "arm" a button like you can with right-clicking, so there's definitely room for an FR there.
"Arming the Button" is the correct way to describe this FR. Nice one!

I'll update the OP.
__________________
Cheers... Andrew K
Reaper v6.80+dev0621 - June 21 2023 • Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.
Thonex is offline   Reply With Quote
Old 08-05-2018, 06:38 PM   #8
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,719
Default

Quote:
Originally Posted by Lokasenna View Post
There is Toolbar: Press active toolbar button 01, but it can be a little fishy about which one is "active".
hmmm... no luck so far... will keep plugging away... stay tuned.. it's needs to be a "right click" equivalent.
__________________
Cheers... Andrew K
Reaper v6.80+dev0621 - June 21 2023 • Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.
Thonex 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 02:51 PM.


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