Jump to content
The simFlight Network Forums

fsuipc offset 3200


Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • 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.