Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Feature Requests

Reply
 
Thread Tools Display Modes
Old 01-17-2023, 06:14 AM   #1
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default Actions: Option to run actions at startup

One thing I come across very often when writing scripts for users of Reaper, is that the script I wrote might be needed to run in the background.
Usually I tell people to bind them to a shortcut to run it when needed.

However, very often, people don't want to run the background script via shortcut but rather at startup.

And now, things very often become difficult, mostly for inexperienced users, because they either need to have programming experience(__startup.lua) or they need to setup a glpbal startup action(SWS).

The former is quite flexible but needs coding skills.

The latter is easier to use but only accepts one startup action, so I need to explain how to make a custom action that combines all actions run at startup and then how to add it to the global startup action and maybe even, hpw to download SWS in the process, but only the pre-release version which is more compatible and.... I lost the person completely because it's too difficult too.

So, I would like to ask for an option to run an action at startup.
Means: rightclick on action, select "run at startup" and now the action is run at startup automatically.
No dependencies, no other setup, no programming skills required.
This would make it much much easier for inexperienced users to setup an action at startup and much easier for us scripters to explain how to do it.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 01-17-2023, 06:51 AM   #2
sockmonkey72
Human being with feelings
 
sockmonkey72's Avatar
 
Join Date: Sep 2021
Location: Berlin
Posts: 1,957
Default

I guess I don't see what the advantage is over those other mechanisms, and two downsides, well three. First, order will be indeterminate, which might be a problem; second, it's invisible, so you don't have any overview of what's enabled and what isn't; finally, it's already confusing to have SWS and built-in stuff via __startup.lua. A third mechanism is kind of overkill for such a simple task.

A better option (IMO) is for someone to write a UI for generating/modifying the __startup.lua scripts, with some kind of table where you can pick scripts from the action list, order them and refer to the list whenever you want and see exactly what's going on.

I don't know what else people put in their __startup.lua apart from Main_OnCommand() though. I suppose that this notional script could be smart enough to ignore/cache/replace any lines it doesn't recognize.
__________________
ReaPack Repository: right-click and copy index URL
sockmonkey72 is online now   Reply With Quote
Old 01-18-2023, 05:13 AM   #3
sockmonkey72
Human being with feelings
 
sockmonkey72's Avatar
 
Join Date: Sep 2021
Location: Berlin
Posts: 1,957
Default

Something like this:

__________________
ReaPack Repository: right-click and copy index URL
sockmonkey72 is online now   Reply With Quote
Old 02-04-2023, 05:11 PM   #4
Rodulf
Human being with feelings
 
Join Date: May 2019
Posts: 379
Default

Quote:
Originally Posted by sockmonkey72 View Post
Something like this:

That works great! Thank you!
Rodulf is offline   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 05:09 AM.


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