|
|
|
06-18-2018, 04:04 AM
|
#1
|
Human being with feelings
Join Date: Oct 2012
Location: Merida, Spain
Posts: 388
|
HOW COULD I? In a CUSTOM ACTION Accept a Confirmation Window.
Hi.
I would like to know if is possible in anyway accept a confirmation window as part of a custom action!
For example, delete a track.
Someone know what I am talking about with my bad english?
Thank you in advanced!
Last edited by javiramallo; 06-18-2018 at 04:10 AM.
|
|
|
06-18-2018, 04:17 AM
|
#2
|
Human being with feelings
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
|
I don't think so, unless there are versions of the actions available that skip confirmation dialogs.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
|
|
|
06-18-2018, 04:25 AM
|
#3
|
Human being with feelings
Join Date: Oct 2012
Location: Merida, Spain
Posts: 388
|
Quote:
Originally Posted by Xenakios
I don't think so, unless there are versions of the actions available that skip confirmation dialogs.
|
☹️
Thanks Xenakios.
|
|
|
06-18-2018, 05:14 AM
|
#4
|
Human being with feelings
Join Date: Mar 2007
Posts: 21,551
|
Couldn't you just wrap the action in a Boolean script for the confirm dialog and not fire the action unless the return value is true/yes? (asking, no idea how easy or not it is to make a simple yes/no dialog in LUA)
|
|
|
06-18-2018, 05:19 AM
|
#5
|
Human being with feelings
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
|
Quote:
Originally Posted by Lawrence
Couldn't you just wrap the action in a Boolean script for the confirm dialog and not fire the action unless the return value is true/yes? (asking, no idea how easy or not it is to make a simple yes/no dialog in LUA)
|
If I understood correctly, the original poster wants to avoid any dialogs from appearing.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
|
|
|
06-18-2018, 06:00 AM
|
#6
|
Human being with feelings
Join Date: Mar 2007
Posts: 21,551
|
Ah, gotcha, thanks. His example, deleting a track, doesn't have a default confirmation dialog so I (incorrectly) thought he was asking for one since (at least here) there is none.
(edit: I see now. The action delete track has a dialog, which the action remove tracks doesn't.)
|
|
|
06-18-2018, 06:18 AM
|
#7
|
Human being with feelings
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
|
Anyway, if the question was actually about getting a confirmation dialog for actions which don't have one, ReaScript can be used. It's probably best to write the whole custom action as a script then.
The following is an example in Lua :
Code:
-- show ok/cancel dialog
local r = reaper.ShowMessageBox("Do you want to proceed?", "ReaScript", 1)
if r == 1 then -- user pressed ok button in dialog
reaper.Main_OnCommand(40001,1) -- run insert new track action
reaper.Main_OnCommand(40018,1) -- run insert media action
end
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Last edited by Xenakios; 06-18-2018 at 06:37 AM.
|
|
|
06-18-2018, 10:46 AM
|
#8
|
Human being with feelings
Join Date: Oct 2012
Location: Merida, Spain
Posts: 388
|
Thanks to all of you for the help!
The real thing that I am needing is:
Use the following actions without propmting:
_SWS_DELTRACKCHLD
I this gif I think taht all get more clear.
Let me know If I got to be understable!
|
|
|
06-18-2018, 11:09 AM
|
#9
|
Human being with feelings
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
|
Quote:
Originally Posted by javiramallo
Let me know If I got to be understable!
|
Yes, unfortunately there is no way to skip showing that dialog.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
|
|
|
06-18-2018, 11:33 AM
|
#10
|
Human being with feelings
Join Date: Oct 2012
Location: Merida, Spain
Posts: 388
|
Quote:
Originally Posted by Xenakios
Yes, unfortunately there is no way to skip showing that dialog.
|
:-(
Again thanks!
|
|
|
06-18-2018, 11:39 AM
|
#11
|
Human being with feelings
Join Date: Oct 2012
Location: Merida, Spain
Posts: 388
|
Quote:
Originally Posted by Xenakios
Yes, unfortunately there is no way to skip showing that dialog.
|
By the way, The problem is not show the dialog but answer it, for example by a new action called "hit enter" or something like that.
Is not there a way to create an action to reproduce a keystroke in a determinate moment?
Thanks!
Last edited by javiramallo; 06-18-2018 at 11:57 AM.
|
|
|
06-18-2018, 01:11 PM
|
#12
|
Human being with feelings
Join Date: Oct 2012
Location: Merida, Spain
Posts: 388
|
Quote:
Originally Posted by Lawrence
Couldn't you just wrap the action in a Boolean script for the confirm dialog and not fire the action unless the return value is true/yes? (asking, no idea how easy or not it is to make a simple yes/no dialog in LUA)
|
I don't know how do that!
Thanks in any case.
|
|
|
06-18-2018, 02:09 PM
|
#13
|
Human being with feelings
Join Date: Mar 2007
Posts: 21,551
|
Quote:
Originally Posted by javiramallo
Is not there a way to create an action to reproduce a keystroke in a determinate moment?
Thanks!
|
I was wondering the same. You'd only need two command actions, Left (to make sure you get the Yes button) and Enter. Did you look through the action list for those? (no personal clue)
|
|
|
06-18-2018, 02:26 PM
|
#14
|
Human being with feelings
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
|
Quote:
Originally Posted by Lawrence
I was wondering the same. You'd only need two command actions, Left (to make sure you get the Yes button) and Enter. Did you look through the action list for those? (no personal clue)
|
Nope, nothing for things like that in the Reaper API.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
|
|
|
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 11:30 PM.
|