Nested Macros work sometimes
Posted: Tue Mar 07, 2006 8:21 pm
Trouble with nested macros; appears to be confined to transmitted values as opposed to internal state setting.
Macro M1, which contains all the codes of M2 and L2 combined in one macro with no nesting other than the DEV_, appears to run reliably.
Macro L2, contained in M2, runs reliably when pressed directly from the L2 key.
Macro M2 will work sometimes, but often fails many times in a row, then work a few times. It always fails, when it does fail, within the L2 nested macro. The parts defined directly in M2 run properly each time.
The idea of the M2 macro is to:
1) Set the device temporarily to the cable box
3) power on the cable box
4) Run L2
The idea of the L2 macro is to:
1) Set the device temporarily to the TV
2) Set the video input to a discrete device
3) Set the device temporarily to the AUDio amp
4) Set the audio input on the amp to a discrete device
5) Make cable the current permanent active device the cable box
I have tried placing delays between commands, swapping DEV_ to the real device ( DEV_TV to TV ). Finally, I moved all the contents of the nested macro and duplicated it in the M1 macro, and that finally works reliably. However, this is a big waste of space and I would like to reclaim it.
Any help would be appreciated. Thanks.
If anyone cares to look at the IR file:
http://www.hifi-remote.com/forums/dload ... le_id=2907
Macro M1, which contains all the codes of M2 and L2 combined in one macro with no nesting other than the DEV_, appears to run reliably.
Macro L2, contained in M2, runs reliably when pressed directly from the L2 key.
Macro M2 will work sometimes, but often fails many times in a row, then work a few times. It always fails, when it does fail, within the L2 nested macro. The parts defined directly in M2 run properly each time.
The idea of the M2 macro is to:
1) Set the device temporarily to the cable box
3) power on the cable box
4) Run L2
The idea of the L2 macro is to:
1) Set the device temporarily to the TV
2) Set the video input to a discrete device
3) Set the device temporarily to the AUDio amp
4) Set the audio input on the amp to a discrete device
5) Make cable the current permanent active device the cable box
I have tried placing delays between commands, swapping DEV_ to the real device ( DEV_TV to TV ). Finally, I moved all the contents of the nested macro and duplicated it in the M1 macro, and that finally works reliably. However, this is a big waste of space and I would like to reclaim it.
Any help would be appreciated. Thanks.
If anyone cares to look at the IR file:
http://www.hifi-remote.com/forums/dload ... le_id=2907