Johnny T
Member
Hi
I'm writing some software in Protool that involves a lot of tags. I've written a script that executes upon 'screen generation' along the lines of:
DB_TO_WRITE_TO = MW110
TOP_BUTTON1 = 100
TOP_BUTTON2 = 102
etc
etc
I've defined some tags that when pressed invert the bit in a Multiplexed word based on DB_TO_WRITE_TO and a 'bit' within TOP_BUTTON1 or TOP_BUTTON2 etc
So one screen may have DB_TO_WRITE_TO equal to DB150 another screen may have it as DB160 etc
MW110 updates on different screens to point to different datablocks depending on which 'program' is being modified.
The problem I'm having is that DB_TO_WRITE_TO and presumably TOP_BUTTON1 etc aren't always being changed when I enter a screen.
There are LOTS of tags on the screen and I'm wondering if this is causing a problem. I've tried adding the script twice to the 'generate screen' function in order to get it to execute twice and reduce the amount of times that it doesn't work but this hasn't helped. I've also executed the same script on the 'button up' function of the button that enters the screen (in other words the script should be actually executing three times) but occassionally the script still doesn't update the DB_TO_WRITE_TO value.
Anyone any ideas of how I can make this script definitely execute?
I was thinking of a check at the bottom of the script along the lines of:
IF DB_TO_WRITE_TO <> MW110 THEN
go through this script again...
END
I'm not sure how to write the VB though to achieve this? Is <> not equal to in VB? How do you jump within VB to start the script again?
Many thanks for any help you can give me
Cheers
JT ;-)
I'm writing some software in Protool that involves a lot of tags. I've written a script that executes upon 'screen generation' along the lines of:
DB_TO_WRITE_TO = MW110
TOP_BUTTON1 = 100
TOP_BUTTON2 = 102
etc
etc
I've defined some tags that when pressed invert the bit in a Multiplexed word based on DB_TO_WRITE_TO and a 'bit' within TOP_BUTTON1 or TOP_BUTTON2 etc
So one screen may have DB_TO_WRITE_TO equal to DB150 another screen may have it as DB160 etc
MW110 updates on different screens to point to different datablocks depending on which 'program' is being modified.
The problem I'm having is that DB_TO_WRITE_TO and presumably TOP_BUTTON1 etc aren't always being changed when I enter a screen.
There are LOTS of tags on the screen and I'm wondering if this is causing a problem. I've tried adding the script twice to the 'generate screen' function in order to get it to execute twice and reduce the amount of times that it doesn't work but this hasn't helped. I've also executed the same script on the 'button up' function of the button that enters the screen (in other words the script should be actually executing three times) but occassionally the script still doesn't update the DB_TO_WRITE_TO value.
Anyone any ideas of how I can make this script definitely execute?
I was thinking of a check at the bottom of the script along the lines of:
IF DB_TO_WRITE_TO <> MW110 THEN
go through this script again...
END
I'm not sure how to write the VB though to achieve this? Is <> not equal to in VB? How do you jump within VB to start the script again?
Many thanks for any help you can give me
Cheers
JT ;-)