Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.

FSUIPC Custom Key Mapping


Ryan Renz
 Share

Recommended Posts

Ryan Renz
Posted
Posted

Hello, 

 

I'm still not getting any luck with my Reality XP software; I am however making progress with my RNS530 controlling the default fs GPS.  It's been working quite spectacularly actually, did my first flight today with it and it's an awesome tool to have. 

 

Anyways; I'm trying to branch out my capabilities.  All these years I've steered far clear of getting into the nitty gritty of FSUIPC, I'm not sure why I was so terrified, I'm fairly decent with computers and programming with VBA and ladder logic (although I never ever was able to get Wide FS working; have up on that long ago... that probably let most of the air out).  However I think FS is just such a large rabbit hole (like modifying AC and scenery etc... etc... etc...), I figured I'd just best to stay away and keep things simple. 

 

Anyways, if you're still reading, I'm get back on topic. 

I'm starting to work with FSUIPC.  Initially I was wanting to get a macro or something for some more complex utilizations, but I'm working with adding my own Keys (not to be confused with buttons).  I'm really trying to use conditions to check flags and then operate controls from there but I'm having a difficult time; and then just realized that I don't think "Compounds" or "Conditions" (however you prefer) are usable for Keys; I think they are only valid for Buttons.  Is there any work around that someone knows of?

 

A simple example is In trying to flag the same Key In pressing:

#=CP(F+121,11)121,11, CONTROL(1), 0 ; If Ctrl+Shift+F10 <flag> is true then CONTROL(1)

#=CP(F-121,11)121,11, CONTROL(2), 0 ; If Ctrl+Shift+F10 <flag> is false then CONTROL(2)

#=CP(F+121,11)122,11, CONTROL, 0

I think you get the picture. 

 

Anyways, then I was thinking "Offsets" were my backup, can always use that tied to a Vb.  However no dice, if I can't have a check logic governing the Key, it makes no difference where I'm checking/ sorting/ writing a value. 

Thank you for your time. 

 

P.S. In hind sight it would have been nice if Keys were treated as buttons and vise versa.  Although I commend Mr. Dawson on this exception program, where would we be without it!?!?!  And nothing is ever perfect. 

In My (virtual) Hangar:

C172 :: C-FXMY

M20M :: C-GRYR

Baron 58 :: C-TVUY

Link to comment
Share on other sites

  • 4 weeks later...
Ryan Renz
Posted
Posted

Just an update if anyone is interested...

 

I've actually had progress here.  Apparently there is no way to do what I'm wanting through the .ini file; which should be possible.  Anyhow, I wrote a Lua program and added fat more capability. 

 

Happy flying. 

In My (virtual) Hangar:

C172 :: C-FXMY

M20M :: C-GRYR

Baron 58 :: C-TVUY

Link to comment
Share on other sites

 Share