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: 768105" data-attributes="member: 114414"><p>Well, I'm not a C programmer, but I think I have it figured out. I attached two C# files with the changes. I believe it will allow the argument to be passed to the program like this:</p><p></p><p>[CODE]Translator.exe -MACRO "Your macro name|5000"[/CODE]</p><p></p><p>Where the "5000" in the above string is the number of milliseconds for the timeout. This parameter is optional, and must be delimited with a pipe character "|" if specified.</p><p></p><p>I'll have to figure out how to build the program, since I don't have a copy of Visual Studio.NET. I suppose the first hurdle is downloading all the necessary files in the correct directory structure. I've never used sourceforge, so I don't know how to do that yet.</p><p></p><p>Here's an outline of what I changed:</p><ul> <li data-xf-list-type="ul">In Win32.cs, at line 2404, I added a new (optional) parameter Timeout with a default value of 1000.</li> </ul> <ul> <li data-xf-list-type="ul">At line 2408 in the same subroutine, I replaced the hard-coded value of 1000 with the variable Timeout.</li> </ul> <ul> <li data-xf-list-type="ul">In the CopyDataWM.cs file, at line 105, I defined a new integer named Timeout, with a default value of 1000.</li> </ul> <ul> <li data-xf-list-type="ul">At line 106 in the same subroutine, I added an "if" statement to check for a pipe character in the data variable. If the pipe is found, the data is split into a variable Timeout (UINT) and the remaining string is left in the variable "data".</li> </ul><p></p><p>If this looks good to you guys, I would really appreciate it if you would update the code and compile a new build. I am willing to test it. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="barnabas1969, post: 768105, member: 114414"] Well, I'm not a C programmer, but I think I have it figured out. I attached two C# files with the changes. I believe it will allow the argument to be passed to the program like this: [CODE]Translator.exe -MACRO "Your macro name|5000"[/CODE] Where the "5000" in the above string is the number of milliseconds for the timeout. This parameter is optional, and must be delimited with a pipe character "|" if specified. I'll have to figure out how to build the program, since I don't have a copy of Visual Studio.NET. I suppose the first hurdle is downloading all the necessary files in the correct directory structure. I've never used sourceforge, so I don't know how to do that yet. Here's an outline of what I changed: [LIST]In Win32.cs, at line 2404, I added a new (optional) parameter Timeout with a default value of 1000.[/LIST] [LIST]At line 2408 in the same subroutine, I replaced the hard-coded value of 1000 with the variable Timeout.[/LIST] [LIST]In the CopyDataWM.cs file, at line 105, I defined a new integer named Timeout, with a default value of 1000.[/LIST] [LIST]At line 106 in the same subroutine, I added an "if" statement to check for a pipe character in the data variable. If the pipe is found, the data is split into a variable Timeout (UINT) and the remaining string is left in the variable "data".[/LIST] If this looks good to you guys, I would really appreciate it if you would update the code and compile a new build. I am willing to test it. :) [/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