|
|
|
06-22-2016, 10:37 PM
|
#1
|
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
|
(Beyond) Reaper and Button
(I posted this in the scrip forum but got no answer, so I am reposting it here and hope...)
A friend of mine created a system to manage song contests. He very successfully used Beyond Reaper to remote-control Reaper.
Now a step in the automated process includes to remove silence.
So he call the action "Auto trim / spit items (remove silence)" via Beyond and after that he moves the items in a way that the silence between them is deleted.
This works, but he needs to press the "process" button in the "Auto trim / spit items" Dialogue box by hand.
Now he searches a way to avoid the necessity to press the button or to remotely press the button via Beyond.
Any help ?
Thanks,
-Michael
|
|
|
07-02-2016, 05:44 AM
|
#2
|
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
|
Can anybody help with this issue ?
-Michael
|
|
|
07-02-2016, 06:14 AM
|
#3
|
Human being with feelings
Join Date: Apr 2016
Location: Maumee, OH
Posts: 21
|
From the script call Command ID => 40315.
|
|
|
07-02-2016, 11:04 AM
|
#4
|
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
|
Thanks a lot. I'll forward the tip and let you know if it works.
-Michael
|
|
|
07-02-2016, 01:03 PM
|
#5
|
Human being with feelings
Join Date: Apr 2016
Location: Maumee, OH
Posts: 21
|
If the scripting language is LUA, the call would be:
reaper.Main_OnCommand(40315,0)
Regards...Archie
|
|
|
07-04-2016, 03:09 AM
|
#6
|
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
|
Quote:
Originally Posted by ACall231
From the script call Command ID => 40315.
|
This action already is used successfully.
But when calling the action from the script, a Dialogue is shown the values in which already are preset by the script but it still needs pressing the OK (or run or similar) button manually.
This is what needs to be avoided, as this is an application that runs free without any user interaction.
In fact similar issues will arrive with other user-less running application we are planning.
Any further ideas ?
-Michael
|
|
|
12-13-2017, 01:05 PM
|
#7
|
Human being with feelings
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 4,031
|
Yes, AutoHotkey can press on any key you want in any window or control. It would wait in the background, if something appears it should trigger, it could wait some security time, let us say 2s, then pressing that button. AutoHotkey runs in Windows and wine, so no problem doing all in linux as well.
|
|
|
12-13-2017, 02:39 PM
|
#8
|
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
|
I don't suppose AutoHotkey can be triggered via network.
AFAIK, he did solve the problem (at least he did not ask more questions on that behalf).
-Michael
|
|
|
12-13-2017, 02:51 PM
|
#9
|
Human being with feelings
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 4,031
|
You do not have to trigger anything, it will trigger itself.
|
|
|
12-14-2017, 07:21 PM
|
#10
|
Human being with feelings
Join Date: Aug 2017
Posts: 336
|
Quote:
Originally Posted by ACall231
From the script call Command ID => 40315.
|
Is there a list that shows these Command ID's?
|
|
|
12-14-2017, 07:24 PM
|
#11
|
Human being with feelings
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
|
Quote:
Originally Posted by tXShooter
Is there a list that shows these Command ID's?
|
Right click in the action list and enable "Show action ID".
|
|
|
12-14-2017, 10:59 PM
|
#12
|
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
|
Quote:
Originally Posted by TonE
You do not have to trigger anything, it will trigger itself.
|
Ah ! I see: it well "see" the window and "press" the button. Correct ?
-Michael
|
|
|
12-29-2017, 02:37 PM
|
#13
|
Human being with feelings
Join Date: Aug 2017
Posts: 336
|
Quote:
Originally Posted by cfillion
Right click in the action list and enable "Show action ID".
|
How would one implement a Command ID from AutoHotKey that is a custom action?
For example, I created a custom action that results in an Command ID: _11b6e22e7a1f72468b2b411c9f16de08
|
|
|
12-29-2017, 03:15 PM
|
#14
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
|
Quote:
Originally Posted by tXShooter
How would one implement a Command ID from AutoHotKey that is a custom action?
For example, I created a custom action that results in an Command ID: _11b6e22e7a1f72468b2b411c9f16de08
|
You can use reaper.NamedCommandLookup( command_name )
https://www.extremraym.com/cloud/rea...dCommandLookup
Something like this:
Code:
commandId = reaper.NamedCommandLookup("_11b6e22e7a1f72468b2b411c9f16de08")
reaper.Main_OnCommand(commandId,0)
or as a one-liner
Code:
reaper.Main_OnCommand(reaper.NamedCommandLookup("_11b6e22e7a1f72468b2b411c9f16de08"),0)
Last edited by nofish; 12-29-2017 at 03:22 PM.
|
|
|
12-30-2017, 03:44 PM
|
#15
|
Human being with feelings
Join Date: Aug 2017
Posts: 336
|
Quote:
Originally Posted by nofish
Code:
commandId = reaper.NamedCommandLookup("_11b6e22e7a1f72468b2b411c9f16de08")
reaper.Main_OnCommand(commandId,0)
|
I think I'm using it incorrectly as nothing happens when I execute that code in my AHK Script...
Code:
reaperProcessAudioStep1()
{
WinActivate, ahk_class REAPERwnd
Sleep, 1000
commandId = reaper.NamedCommandLookup("_11b6e22e7a1f72468b2b411c9f16de08")
reaper.Main_OnCommand(commandId,0)
Sleep, 3000
return
}
|
|
|
12-30-2017, 06:06 PM
|
#16
|
Human being with feelings
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
|
Quote:
Originally Posted by tXShooter
I think I'm using it incorrectly as nothing happens when I execute that code in my AHK Script...
|
It's a Lua snippet to be run from a script inside REAPER. You could run NamedCommandLookup to get the current command ID for the custom action then put that ID in the AHK Script. But it will likely break at some point because the numeric ID is not guaranteed to remain the same next time REAPER is started.
https://forum.cockos.com/showthread.php?p=1913777
|
|
|
12-30-2017, 07:19 PM
|
#17
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
|
Sorry, I missed that this is meant for use inside an AHK script.
|
|
|
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 06:17 PM.
|