Jump to content
The simFlight Network Forums

Keyboard trapping


Recommended Posts

Hi Pete,

I've been trying to understand the key trapping process with FSUIPC, but I don't (sorry). What I want is to detect a certain keyboard sequence within FS (let's say CTRL+SHIFT+T) and then do something in my program (external program, written in VB). Is it possible? or am I confusing with Hotkeys, which seems to me, are only used to work with FS Controls.

Thanks in advance for your time.

Armando Chibante

Link to comment
Share on other sites

I've been trying to understand the key trapping process with FSUIPC, but I don't (sorry). What I want is to detect a certain keyboard sequence within FS (let's say CTRL+SHIFT+T) and then do something in my program (external program, written in VB). Is it possible?

Yes, of course. Several programs use that facility already -- Radar contact and Flight Deck Companion, to name two.

or am I confusing with Hotkeys, which seems to me, are only used to work with FS Controls.

FSUIPC's user facilities include both special FSUIPC-implemented HotKeys (on the Hotkeys page), and the facility for FSUIPC to assign keystrokes to a larger list of FS controls than FS's own facility, as well as special controls for Project Magenta and WideFS (on the Keys page), but both of these facilities are end user facilities used via the Options dialogue, not facilities for programs.

Please download the FSUIPC SDK which you will find on http://www.schiratti.com/dowson. The programmable hot key facilities are explained in a section entitled HOT KEYs for Applications and involves the setting of parameters into a table at offset 3210.

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.