View Single Post
  #12  
Old 01-24-2010, 04:18 PM
MikkOwl MikkOwl is offline
Approved Member
 
Join Date: Jan 2010
Location: Sweden
Posts: 309
Default

Yes it works in online mode, just instruments not working there.

I still don't know how to forward the information from devicelink to autohotkey. If anyone has any experience with software engineering that could be helpful, it would speed things up by a huge amount. I'm getting nowhere due to trying to wrestle this important problem, both for controlling G940 led lights, and also for making the throttle/prop pitch controls much easier (overcoming some of the limitations)

I have 'netcat' be able to write to a file in the command dos promt with "il2throttlescript.exe|netcat.exe blabla_connection_to_device_link_parameters > text_file_output_from_device_link.txt".

But this text file is write protected for other programs and devicelink keeps sending replies in a single long string, adding one after another. I can get autohotkey to read the text inside but since it just keeps growing, I don't know how to sort the whole mess out in a practical way.

There's a special version of autohotkey, and/or a 'library' called autohotkey.dll with updated functions compared to the normal version. This dll allows reading 'stdin', that is, raw command input/output (used in pipes). Then I could pipe netcat's replies to my autohotkey script, and make it read the 'latest' it recieved from devicelink, making things real smooth and easy.

Problem is, I just don't understand how to use dll's, how to call up commands from them and all those things.
Reply With Quote