Restart FL Studio. Open the MIDI settings panel, and assign a port number to your desired MIDI controller. Ensure this port number is set for both the input and output. Assign your desired script to ...