Jump to content
The simFlight Network Forums

Disablind FS2002 Menu Items vie FSUIPC and visual basic?

Guest braunewell

Recommended Posts

Guest braunewell

Hi Guys,

im looking for a way to disable some Menu Items in fs2002 vie FSUIPC and Visual Basic. Any experiences? ideas?

You would save my world if ...

Thanks a lot

Stefan :?

Link to comment
Share on other sites

Guest stefan braunewell

hi stuart,

thanks for youre reply.

this is exactly what i was looking for, i would like to restrict

the Bits 8–15 (byte at 32F1): Flight Sim menu restrictions - 2^14 that disables them Menu: Flights, Aircraft and World menus.

To be honest i have no idea how to write that in Visual Basic, reading values is no problem.

Do you have a litle example for me?

Thanks a lot


Link to comment
Share on other sites


Private Type DWORD_Split
  Byt0 As Byte
  Byt1 As Byte
  Byt2 As Byte
  Byt3 As Byte
End Type

Private Sub Command1_Click()
Dim dwResult As Long
Dim vDisable As DWORD_Split
  vDisable.Byt0 = 0
  vDisable.Byt1 = 64
  vDisable.Byt2 = 0
  vDisable.Byt3 = 255
  Call FSUIPC_Write(&H32F0, 4, VarPtr(vDisable), dwResult)
  Call FSUIPC_Process(dwResult)
End Sub

Note that the FSUIPC docs state that you will need to call this frequently in order to maintain the menu disabling effect for a period of time. FSUIPC will reset it a few seconds after being called to prevent crashed apps from rendering FS menu options inaccessible.


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.