Guest braunewell Posted March 30, 2003 Report Posted March 30, 2003 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 :?
StuartWhelan Posted March 30, 2003 Report Posted March 30, 2003 Check out offset 0x32f0 in the FSUIPC SDK...
Guest stefan braunewell Posted March 31, 2003 Report Posted March 31, 2003 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 Stefan
Chris Brett Posted March 31, 2003 Report Posted March 31, 2003 Stefan, 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. Chris
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now