Jump to content
The simFlight Network Forums

FS9/FSX ATC offset


 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • 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.