Jump to content
The simFlight Network Forums

FS9/FSX ATC offset


Recommended Posts

Hello Pete,

I have an VB6 FlightSim utility that plays live streaming ATC from the web using Flight Simulator's Comm frequencies as a means of tuning them in. There is one feature (in the application) that I have not been able to implement and that is to automatically mute my application whenever Flight Simulator's ATC is active. Are there any FSUIPC offsets that would let me know when Flight Simulator's ATC audio is playing or when the ATC window is being displayed? I've searched the forum for "ATC" but couldn't find any topics that answered the question. Hope you can help.

Thanks,

Dave W

Link to comment
Share on other sites

I have an VB6 FlightSim utility that plays live streaming ATC from the web using Flight Simulator's Comm frequencies as a means of tuning them in. There is one feature (in the application) that I have not been able to implement and that is to automatically mute my application whenever Flight Simulator's ATC is active. Are there any FSUIPC offsets that would let me know when Flight Simulator's ATC audio is playing or when the ATC window is being displayed? I've searched the forum for "ATC" but couldn't find any topics that answered the question. Hope you can help.

Sorry, i don't know any way to determine when ATC audio is playing. As for the ATC window, i can only suggest you use the FindwindowEx API to see if the ATC window exists and is visible. Use its title -- "ATC Menu" I think).

I'm not sure if this can be done if the ATC window isn't undocked, but i suspect it should be possible.

Regards

Pete

Link to comment
Share on other sites

Sorry, i don't know any way to determine when ATC audio is playing. As for the ATC window, i can only suggest you use the FindwindowEx API to see if the ATC window exists and is visible. Use its title -- "ATC Menu" I think).

I'm not sure if this can be done if the ATC window isn't undocked, but i suspect it should be possible.

Regards

Pete

Thanks for the quick response Pete. I'll investigate the Findwindow API and see if it will detect an undocked ATC window.

Cheers,

Dave W

Link to comment
Share on other sites

Thanks for the quick response Pete. I'll investigate the Findwindow API and see if it will detect an undocked ATC window.

It'll be easy to detect it undocked, because it is then a top level Window, and FindWindowEx will find it by its title. When it is docked i'm not so sure. In Windowed mode it should still be a Window, but it'll be a child of FS, so you'd first need to get FS's window handle (FindWindowEx for classname "FS98MAIN" --- don't ask!), and specify that as the owner and/or parent.

But in full screen mode I'm not completely sure they are true windows. But by all means experiment.

Regards

Pete

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.