Jump to content
The simFlight Network Forums

Need an example please


Recommended Posts

Hello, could you please give a short example of how to make a dx button press in FSUIPC's UI send a virtual key (say, F15) to FSX? Of course, I have no problem with FSUIPC sending real keyboard keys and I know where the virtual key code list is in the manual (FSUIPC4 for Advanced Users.pdf page 17-18).

Many thanks,

Dirk.

Link to comment
Share on other sites

Hello, could you please give a short example of how to make a dx button press in FSUIPC's UI send a virtual key (say, F15) to FSX? Of course, I have no problem with FSUIPC sending real keyboard keys and I know where the virtual key code list is in the manual (FSUIPC4 for Advanced Users.pdf page 17-18).

Sorry, what do you think the difference is between a "virtual key" and a "real key"? FSUIPC only knows how to send keycodes. "Real keys" can only be sent by real keyboards, keyboard emulators, or low level driver-like monitors which hook into the keybaord system low down enough to fool Windows.

What's a "dx button" BTW. Do you mean a "joystick button", i.e. one recognised by FSUIPC's button assignments tab?

Regards

Pete

Link to comment
Share on other sites

Yes, Pete I meant to program a press on a joystick button that would send F15 key to FSX in FSUIPC interface. If I were to send any key F1-F12 to FSX that would be easy as I would just press a corresponding key on the keyboard in the corresponding FSUIPC's window in the GUI. But I'd like to send a virtual keystroke not existing on the keyboard (from F13 to F24).

Thanks,

Dirk.

Link to comment
Share on other sites

Yes, Pete I meant to program a press on a joystick button that would send F15 key to FSX in FSUIPC interface. If I were to send any key F1-F12 to FSX that would be easy as I would just press a corresponding key on the keyboard in the corresponding FSUIPC's window in the GUI. But I'd like to send a virtual keystroke not existing on the keyboard (from F13 to F24).

Just assign the button to an existing key using the GUI, then change the keycode in the INI file line to the keycode for the key you don't have. You can do this without closing down FS. In the buttons tab just press the reload button to get the change loaded.

That's probably the easiest way. An alternative is to assign the button on the FS control side of the assignments tab, using the "Key press & release", "Key press/hold", and/or "Key release", as you wish. You use the keycode with shifts encoded in the parameter.

Regards

Pete

Link to comment
Share on other sites

Just assign the button to an existing key using the GUI, then change the keycode in the INI file line to the keycode for the key you don't have. You can do this without closing down FS. In the buttons tab just press the reload button to get the change loaded.

This is a very elegant way. I should have guessed it myself. :)

Thanks!

Dirk.

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.