Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hello,

I write a small program that use FSUIPC ( registered v3.1.25) to interact with FS2004 and a have 2 problems :

1 ) All the slots in table 0x3210 seems free...but when I program a virtual key code in a free slot, and later I test it...Nothing. My objective is to intercept a certain key in FS2004 then make an action in my program.

2 ) When I read the current flight in address 0x3d00, I obtain a hold filename.

Can you give me some informations.

Thank's

Posted

1 ) All the slots in table 0x3210 seems free...but when I program a virtual key code in a free slot, and later I test it...Nothing.

I cannot tell what you are doing wrong without more information. Can't you see what is happening by logging the IPC Read/Write data? That's what it is for, to help debug application programs. See the "Logging" page in the FSUIPC options.

If you do the logging and still can't see what you've got wrong, ZIP the log and attach it here and I'll take a look.

2 ) When I read the current flight in address 0x3d00, I obtain a hold filename.

Sorry, I don't understand. What's a "hold filename"? Anyway, offset 3D00 contains the title of the current user aircraft, not the flight. The current flight is at 3F04, as documented in the Programmer's guide.

Regards,

Pete

Posted

1 ) All the slots in table 0x3210 seems free...but when I program a virtual key code in a free slot, and later I test it...Nothing.

I cannot tell what you are doing wrong without more information. Can't you see what is happening by logging the IPC Read/Write data? That's what it is for, to help debug application programs. See the "Logging" page in the FSUIPC options.

If you do the logging and still can't see what you've got wrong, ZIP the log and attach it here and I'll take a look.

2 ) When I read the current flight in address 0x3d00, I obtain a hold filename.

Sorry, I don't understand. What's a "hold filename"? Anyway, offset 3D00 contains the title of the current user aircraft, not the flight. The current flight is at 3F04, as documented in the Programmer's guide.

Regards,

Pete

Thank you, I have made a mistake in the address of the flight.It's good now.

But I have not found a solution for the first problem:

My objective is intercept keyboard action in FS, then transmit it via the FSUIPC to an external program...What I do?

Thank's

Posted

But I have not found a solution for the first problem:

My objective is intercept keyboard action in FS, then transmit it via the FSUIPC to an external program...What I do?

The hot key provisions in FSUIPC work fine. many programs use them including Radar Contact and Flight Deck Companion. You evidently have some errors in yuor program. I can only repeat what I said before, which you seem not to have noticed:

I cannot tell what you are doing wrong without more information. Can't you see what is happening by logging the IPC Read/Write data? That's what it is for, to help debug application programs. See the "Logging" page in the FSUIPC options.

If you do the logging and still can't see what you've got wrong, ZIP the log and attach it here and I'll take a look.

Regards,

Pete

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.