Jump to content
The simFlight Network Forums

Recommended Posts

Hi Paul and everyone can help me,

I have started this thread here avoid the end of this post

How I can old return offsets once the value is return ?

Mean If strobe is 'ON' and nothing is changed the "FSUIPCConnection.Process()" doesn't need to return me value I have already.

Thanks

Regards Fred

Share this post


Link to post
Share on other sites

Hi,

think about how should FSUIPCClient.dll know that there is a change without reading it. The check if there is no change and no further action should be done is in your hand only.

Thomas

Share this post


Link to post
Share on other sites

Hi,

I think you don't have read the link bellow or here:

So you would be read I have offsets & function for that

And my purpose it's about holding value it's calling at every FSUIPCConnection.Process()

Regards Fred

Share this post


Link to post
Share on other sites

Process() always brings back the current value. If you only want to do something when a value changes then you need to store the old value in a variable. The variable would need to be declared at the form or module level. Then after you Process(), you need to compare the current value with the old to see if it's different.

Paul

 

Share this post


Link to post
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

×

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.