Old 05-23-2020, 12:40 PM   #1
J Reverb
Human being with feelings
 
Join Date: Jul 2009
Posts: 765
Default How to set script to defer only when armed in toolbar ?

I have a script that I would like to be run in defer mode when the tool bar is armed and then stop defer when disarmed.
A code snip would be a great help if anyone has ?
Thanks v much.

J.
J Reverb is offline   Reply With Quote
Old 05-23-2020, 01:12 PM   #2
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 9,636
Default

Similar question some time ago:
https://forum.cockos.com/showthread.php?t=232473

edit:
Just noticed you said when toolbar 'armed' (rightclick) and not 'pressed' (leftclick) as asked in the other thread.
But I think for defer scripts it's practically the same? (Someone correct me in case...)

Last edited by nofish; 05-23-2020 at 01:18 PM.
nofish is offline   Reply With Quote
Old 05-25-2020, 03:51 AM   #3
J Reverb
Human being with feelings
 
Join Date: Jul 2009
Posts: 765
Default

Thanks nofish that's perfect I actually went with the button method you suggested.
I have credited you in lua script.
https://forum.cockos.com/showthread....93#post2293493

Many thanks for your help, really useful
J.
J Reverb is offline   Reply With Quote
Old 05-25-2020, 05:43 AM   #4
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 9,636
Default

Glad it helped and thanks for the credit.
Though it should be noted that I also just copied that code from someone else (don't remember who/from where exactly). :P

As a sidenote, maybe consider putting in ReaPack so more people have a chance to see it.
nofish 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:57 PM.


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