The easier way to achieve what you are trying to do is use IR sequences:
1 Like
The easier way to achieve what you are trying to do is use IR sequences: