Jump to content
The simFlight Network Forums

Recommended Posts

Posted

I would like to send virtual key to fs 2004 through fsuipc.

i am searching some examples for this.

If i want to send CTRL-N key, how can i do it.

I have understood that

3200 is for WM_KEYDOWN or WM_KEYUP

3204 for wparam : virtual key but how write 2 or more virtual keys

3208 for lparam: what must i write here

I am using leveld-767 addon (not answering to virtual keys sent by an another application)

Than you

Patrick

Posted
I would like to send virtual key to fs 2004 through fsuipc.

i am searching some examples for this.

If i want to send CTRL-N key, how can i do it.

I have understood that

3200 is for WM_KEYDOWN or WM_KEYUP

3204 for wparam : virtual key but how write 2 or more virtual keys

3208 for lparam: what must i write here

The wparam and lparam values are the parameters for the WM_KEYDOWN or WM_KEYUP messages. You need to refer to Microsoft Windows programming references, for whatever language you are using. For combinations like Ctrl+N you have to do the same as the keyboard would, i.e.

Press Ctrl (KEYDOWN)

Press N (KEYDOWN)

Release N (KEYUP)

Release Ctrl (KEYUP)

i.e. 4 operations -- 4 separate writes t the 12 bytes at 3200.

You may want to consider toggling a bit in the virtual joystick offsets instead (see 3340) and then simply programming the resulting button press in FSUIPC's Buttons page to send the Ctrl+N. It would be easier.

Regards,

Pete

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.