Control Frequency Analysis Window using python

Hi,

I’m trying to use python script to automate a flow where I want to record → plot spectrum → select the fft windowing and points → export the fft data
I’m currently able to record and then plot spectrum. However, I’m unable to control the Frequency Analysis window (unable to access any of the buttons/dropdown menus) which appears after analyzing the spectrum as I’m unable to find any scripting reference for the same. In fact, I couldn’t find any scripting reference for most of the windows that appear after accessing any of the menu options.
audacity_frequency analysis window.PNG

That can’t be done through Audacity’s scripting commands, though it may be possible through a 3rd party automation app such as AutoHotkey (https://www.autohotkey.com/)