|
|
|
10-25-2015, 04:10 PM
|
#1
|
Human being with feelings
Join Date: Oct 2015
Location: London
Posts: 6
|
reaper_www and custom actions
Hi,
I was using the web plugin with custom actions a while back - creating buttons on the webpage and getting the command IDs from reaper. I've come back to revisit this and I now understand that the way command IDs are assigned to custom actions has been changed and that at run time the NamedCommandLookup function can be used to get the ID.
Before I dust off my (long forgotten) coding skills, has anyone updated the plugin to work with custom actions and be willing to share it?
Angus.
|
|
|
11-04-2015, 01:13 PM
|
#2
|
Human being with feelings
Join Date: Oct 2015
Location: London
Posts: 6
|
Well, it took me a week just to get the plugin to compile on OS X. By that I mean it basically took me a week to discover all I needed to do was use Xcode!
From there it was a pretty simple code change to implement custom IDs.
Am happy to make my updates available if anyone else wants it.
Or is there a repository somewhere for these updates?
Angus.
|
|
|
12-21-2016, 07:36 PM
|
#3
|
Human being with feelings
Join Date: Aug 2016
Posts: 14
|
I would love to know this as well if you (or anyone else) would care to share.
|
|
|
12-21-2016, 08:58 PM
|
#4
|
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 15,721
|
The new web interface that is included in reaper_csurf as of 5.30 supports custom actions, via the /_/_actionidstring request (and it is otherwise compatible with the classic reaper_www)
|
|
|
12-22-2016, 01:03 PM
|
#5
|
Human being with feelings
Join Date: Aug 2016
Posts: 14
|
Really appreciate the response sir! I finally got it working. I wasn't using single quotes around the command, silly me.
Last edited by aeldude; 02-05-2017 at 05:36 PM.
|
|
|
03-01-2017, 12:02 PM
|
#6
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,451
|
For example in order to call native action 40084, one should write:
onClick="wwr_req(40084)"
If I want to call custom action "_0a1510e85d2e2b4d8b01d5a2ddbf4e91", what should I write?
|
|
|
03-01-2017, 01:52 PM
|
#7
|
Human being with feelings
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
|
@amagalma
wwr_req('_0a1510e85d2e2b4d8b01d5a2ddbf4e91')
|
|
|
03-01-2017, 04:43 PM
|
#8
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,451
|
Thank you cfillion!
I haven't thought to use ' ' instead of " " ! :/
|
|
|
03-01-2017, 10:36 PM
|
#9
|
Human being with feelings
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
|
It works with double quotes too: in Javascript both are the same. It's just a style preference.
|
|
|
03-02-2017, 03:30 AM
|
#10
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,451
|
Strange! Because I did try with " " and it didn't work...
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 10:56 PM.
|