Old Today, 12:39 PM   #1
Buy One
Human being with feelings
 
Join Date: Sep 2019
Posts: 44
Default How does one reset an answer to the background script dialogue? (solved)

The one which reads

Quote:
ReaScript task control

[script] is running in the background.

Would you like to terminate all instances of this script, or launch a new instance?

Remember my answer for this script.
when a running script is relaunched

I assume it's stored in one of the config files, but which and what's the function named?

Solution: in reaper-kb.ini the value 4 next to a script command ID changes to 516 (in my case, after selecting "launch a new instance") when the answer to the dialogue is saved.
So restoration of 4 seems to reset it.


from the reaper-kb.ini file reference

Quote:
4 - Dialogwindow appears(Terminate, New Instance, Abort), if another instance of a given script is started, that's already running
260 - always Terminate All(!) Instances, if you try to run another instance of a script, that's already running. When no instance is running, it simply starts the script.
516 - always start a New Instance of the script, that's already running

Last edited by Buy One; Today at 01:40 PM.
Buy One is online now   Reply With Quote
Old Today, 01:42 PM   #2
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,639
Default

This should be an option in Reaper directly, IMHO.
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is online now   Reply With Quote
Old Today, 03:19 PM   #3
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 5,490
Default

I agree an option somewhere would be nice. What I do is to remove the script and load it again
heda is offline   Reply With Quote
Old Today, 03:32 PM   #4
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,639
Default

I posted a thread in Nitpicks for that.
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is online now   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 04:45 PM.


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