- July 17, 2011
- 27
- 1
- Home Country
-
United States of America
I've written a macro that turns on my A/V receiver and sets the correct input on the receiver. When I click the "Test" button, it works perfectly without error. However, when I execute it by running translator from the command line, I get a timeout error. The commands are still sent correctly to my A/V receiver, but I have to click the "OK" button on the error message box. I would like to stop this from occurring, because I don't want to press the "OK" button.
The macro sends a power-on command via RS-232 to the receiver, then it pauses for 3000 milliseconds (3 seconds) before it sends a command to change the input.
I'm guessing that the command line interface expects a response from the running instance of translator within a specific time period, and that my 3 second pause is causing the problem. I've tried reducing the pause to 450mS and it runs without an error from the command line. However, my A/V receiver needs 3 seconds after power-on before it can switch the input.
Is there a way to change the timeout period?
My macro looks like this:
And I get the following error message:
"System.ComponentModel.Win32Exception: This operation returned because the timeout period expired at IrssUtils.Win32.SendWindowsMessage(IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr IParam) in ..."
I have a work-around for this problem... I just run Translator from a batch file to send the power-on command, then sleep for 3 seconds before running translator again to send the input-select command. This works as desired without an error message. However, I would like to get this fixed because I would like to use more features in the macros that will cause some delays... and I will need to run them from a command line from an external program.
The macro sends a power-on command via RS-232 to the receiver, then it pauses for 3000 milliseconds (3 seconds) before it sends a command to change the input.
I'm guessing that the command line interface expects a response from the running instance of translator within a specific time period, and that my 3 second pause is causing the problem. I've tried reducing the pause to 450mS and it runs without an error from the command line. However, my A/V receiver needs 3 seconds after power-on before it can switch the input.
Is there a way to change the timeout period?
My macro looks like this:
Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<macro>
<item command="Macro: Receiver_Power_ON" />
<item command="Pause: 3000" />
<item command="Macro: Receiver_Input_MD-DAT" />
</macro>
And I get the following error message:
"System.ComponentModel.Win32Exception: This operation returned because the timeout period expired at IrssUtils.Win32.SendWindowsMessage(IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr IParam) in ..."
I have a work-around for this problem... I just run Translator from a batch file to send the power-on command, then sleep for 3 seconds before running translator again to send the input-select command. This works as desired without an error message. However, I would like to get this fixed because I would like to use more features in the macros that will cause some delays... and I will need to run them from a command line from an external program.