(SOLVED) GetCommandText API function » Passive Income » Forum
Forum

Forum



ПоискПоиск   Users   Registration   Entrance
Today: 01.07.2025 - 06:24:21
Pages:  1  

(SOLVED) GetCommandText API function

Advertising

.
MessageAuthor

There is currently no way to get the text of an action from its ID in ReaScript. Such a function would make that possible, and it would also allow checking for nonexistent actions from user input. The idea comes from this thread: . string GetCommandText(int section_id, int command_id) Code:

-------------------------------

mimocurry

users




Statistics:
Messages: 62
Registration: 04.15.2003
24.02.23 - 01:02:57
Message # 1
RE: (SOLVED) GetCommandText API function

+1 for all that ! Usage example :

-------------------------------

pescadito

users




Statistics:
Messages: 136
Registration: 05.11.2001
24.02.23 - 01:09:19
Message # 2
RE: (SOLVED) GetCommandText API function

It turns out there is already an undocumented kbd_getTextFromCmd API function but it's unavailable to ReaScripts. Perhaps SWS could expose it if REAPER won't.

-------------------------------
EX-NASA SpecE30 Racer---NASA Florida Certified Instructor

jblack

users




Statistics:
Messages: 2,288
Registration: 05.10.2002
24.02.23 - 01:18:52
Message # 3
RE: (SOLVED) GetCommandText API function

the function is reaper.CF_GetCommandText, thanks to cfillion

-------------------------------
Previous car Euro S50B32 swap, Swain Tech cermamic coated euro SS replica headers,custom subframe/diff mount reinforcement, 3.46 diff, TcKline S/A coilovers, 18inch BBS CH's. Gen 1 Projector Z's with HID's and angel eyes

Avus95

users




Statistics:
Messages: 730
Registration: 03.09.2002
24.02.23 - 01:26:53
Message # 4
RE: (SOLVED) GetCommandText API function

kbd_enumerateActions and kbd_getTextFromCmd are now available as ReaScript functions Don't know since which build, at least since 6.79

-------------------------------
Sal

ToplessBMW3

users




Statistics:
Messages: 457
Registration: 04.05.2002
24.02.23 - 01:37:56
Message # 5
RE: (SOLVED) GetCommandText API function

Yes, found it

-------------------------------
R.I.P Old Blue 11/85-12/04

Evolution88

users




Statistics:
Messages: 250
Registration: 11.11.2003
24.02.23 - 01:48:53
Message # 6
RE: (SOLVED) GetCommandText API function
Session Must Be on an Audio Record Volume : Previous topic
Pages:  1  

The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants