View Single Post
Old 03-15-2020, 12:21 PM   #7541
Geoff Waddington
Human being with feelings
 
Geoff Waddington's Avatar
 
Join Date: Mar 2009
Location: Dartmouth, Nova Scotia
Posts: 11,184
Default

Quote:
Originally Posted by MixMonkey View Post
Oh well, that elation was short lived. Unfortunately, when you double assign buttons, the actions don't seem to happen sequentially. If I do this:

Code:
Enter	Reaper "a script that recalls track visibility and selection"
Enter	ForceScrollLink
..the first action hasn't properly completed before the second runs, so the surface doesn't scroll.

What it needs is a delay between the two actions. Putting a delay in the first action (in the script) doesn't work because it doesn't delay the second action assigned to the button.
Don't think a delay will work reliably.

This confirms what I've read here before -- scripts launch asynchronously -- if that is the case, we will never be able to "block" until done, and we have no call-back for "I am finished" from the script -- let's hope that's wrong or there is a solution / workaround
__________________
To install you need the CSI Software and Support Files
For installation instructions and documentation see the Wiki
Donate -- via PayPal to waddingtongeoff@gmail.com
Geoff Waddington is offline   Reply With Quote