home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Products
IR Server Suite (IRSS)
Translator timeout when using command line to start macro
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="barnabas1969" data-source="post: 767519" data-attributes="member: 114414"><p>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.</p><p></p><p>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.</p><p></p><p>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.</p><p></p><p><strong>Is there a way to change the timeout period?</strong></p><p></p><p>My macro looks like this:</p><p>[CODE]<?xml version="1.0" encoding="utf-8" standalone="yes"?></p><p><macro></p><p> <item command="Macro: Receiver_Power_ON" /></p><p> <item command="Pause: 3000" /></p><p> <item command="Macro: Receiver_Input_MD-DAT" /></p><p></macro>[/CODE]</p><p></p><p>And I get the following error message:</p><p>"System.ComponentModel.Win32Exception: This operation returned because the timeout period expired at IrssUtils.Win32.SendWindowsMessage(IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr IParam) in ..."</p><p></p><p>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.</p></blockquote><p></p>
[QUOTE="barnabas1969, post: 767519, member: 114414"] 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. [B]Is there a way to change the timeout period?[/B] 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>[/CODE] 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. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Products
IR Server Suite (IRSS)
Translator timeout when using command line to start macro
Contact us
RSS
Top
Bottom