DaveW Posted October 11, 2011 Report Posted October 11, 2011 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
Pete Dowson Posted October 11, 2011 Report Posted October 11, 2011 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
DaveW Posted October 11, 2011 Author Report Posted October 11, 2011 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
Pete Dowson Posted October 11, 2011 Report Posted October 11, 2011 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
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