Jump to content
The simFlight Network Forums

SendKey and LUA


Recommended Posts

Hi,

I would automatically send to different add-ons, that I have on a networked PC, seveal keystrokes through the SendKey definitions I put in the wideclient.ini file.

Is it possible to send all them out at the same time through a LUA file that I could assign to a button?

Thanks for th help and best regards

Joe

Link to comment
Share on other sites

I would automatically send to different add-ons, that I have on a networked PC, seveal keystrokes through the SendKey definitions I put in the wideclient.ini file.

Is it possible to send all them out at the same time through a LUA file that I could assign to a button?

Yes, you can use Lua to send any FS or FSUIPC control plus parameter (excepting the Offset controls, where there's no need because the Lua ipc library handles offsets directly). Just use the ipc.control function with the KeySend control number (1006, as listed in the FSUIPC advanced users manual) and the KeySend number, 1-255.

Or of course you can simply assign all of the KeySends to the one button by editing the FSUIPC INI file. This method would actually be faster and easier to set up.

Regards

Pete

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.