FPMI Windows startup script

How can I configure a script to run whenever a window is displayed?

You can achieve this by putting the script in the window’s internalFrame/internalFrameActivated event. You can find this by highlighting the window name in the Project Browser, then pressing J or selecting Component/Configure Actions.