RASMIB Posted January 31, 2014 Report Posted January 31, 2014 Hi Pete, I am using Linda which opens auomatically all USB connected HID devices. How can I found the handle returned by the function com.openhid(VID, PID, unit, repno) ? RASMIB
Pete Dowson Posted January 31, 2014 Report Posted January 31, 2014 I am using Linda which opens auomatically all USB connected HID devices. How can I found the handle returned by the function com.openhid(VID, PID, unit, repno) ? Not sure what you mean. As you say, the handle is returned, so your Lua program has it. It is merely a pointer into an internal FSUIPC or WideClient structure. It has no use outside of the context in which it applies. What are you wanting it for? Pete
RASMIB Posted February 1, 2014 Author Report Posted February 1, 2014 Hi Pete I am using Linda Linda is a nice tool as long as buttons are concerned The problem is the displays of my Saitek Pro Flight Radio and Multi Panel How can I command these displays ? with your function com.write(handle, "string") of course My concern : how can I found the handles of the HIDs open by LINDA The HID must be opened because the buttons are reacting I really appreciate your help Michel RASMIB
Pete Dowson Posted February 1, 2014 Report Posted February 1, 2014 My concern : how can I found the handles of the HIDs open by LINDA The HID must be opened because the buttons are reacting Does LINDA use the comhid functions or simply the normal joystick button detection? In any case the handle is local to the thread which created it -- you'd either need to put you code into the Lua being run by LINDA, or get it to run call your Lua functions as an external module. Easier to simply use openhid in your own Lua code. With USB devices several programs can have them open at the same time, it isn't like the old serial port system. Regards Pete
RASMIB Posted February 2, 2014 Author Report Posted February 2, 2014 I don't know how Linda opens the HIDs It's a very good new that one USB device may be opened by several programs at the same time Thanks and have a good day Pete Michel RASMIB
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now