Setting Midiin bydefault?
I am building a patch for an installation and it uses three Korg NanoKontrols. To keep setup as simple as possible for the museum staff when I am not around, I want the controllers to connect automatically to the right set of patch-controls. Is there a way to automatically select the midiin device? AFAIK, I only have a pop-up menu when I doubleclick on the object.
You can set abbreviations for MIDI device names in the MIDI Setup window, and use those as arguments to the midiin object. Have a look at the inport tab in the midiiin help file.
\M
from this post :
you want to connect 3 identic midi devices.
That is somewhat risky, as they could get different #nn numbers in audio midi setup
depending on where they are plugged etc.
you can see here effect of replugging my little interface into different USB slots :

your better bet is to follow advice to assign separate midi channels for each of 3
Korg Nano Controllers, and simply leave ctlin object ports unassigned.
In this example ctlin listens to cc#22 on midi ch. 3 no matter where it comes from.
midiin object has no option like that, only dedicated midi objects like notein, ctlin etc

everything what has been said already and...
it can be important to wait until midiinfo has really collected all the info from the OS before you select an entry, i have seen it failing otherwise.
a good compromise is to have an additional delayed version of the loadbang after the normal loadbang performing the selection again.