Modifying LoadVST shortcuts to detect DSP FX Chain and add there?

Hi, I’m wondering what kind of a process it would be to recognize when the user is seeing the DSP FX Chain display

(renoise.app().window.active_middle_frame=7 ) and then load a VST / AU there? I already have a global LoadVST/LoadAU setup where wherever I press (Mixer, Pattern Editor, etc), a specific VST or AU is loaded.

Is it safe to automate DSP FX Chain creation?