diff --git a/MidiInAndGuiMonitor.ahk b/MidiInAndGuiMonitor.ahk index 7c1d02a..4ccb079 100644 --- a/MidiInAndGuiMonitor.ahk +++ b/MidiInAndGuiMonitor.ahk @@ -85,7 +85,7 @@ midiMon: ; midi monitor gui with listviews gui,14:destroy gui,14:default gui,14:add,text, x80 y5, Midi Input ; %TheChoice% - Gui,14:Add, DropDownList, x40 y20 w140 Choose%TheChoice% vMidiInPort gDoneInChange altsubmit, %MiList% ; ( +Gui,14:Add, DropDownList, x40 y20 w140 Choose%TheChoice% vMidiInPort gOnMidiMonInputChange altsubmit, %MiList% ; ( Gui,14:Add, ListView, x5 r11 w220 Backgroundblack caqua Count10 vIn1, EventType|StatB|Ch|Byte1|Byte2| gui,14:Add, ListView, x+5 r11 w220 Backgroundblack cyellow Count10 vOut1, Event|Value| LV_ModifyCol(1, 105) @@ -94,6 +94,14 @@ gui,14:Show, autosize xcenter y5, MidiMonitor Return +OnMidiMonInputChange: + Gui, Submit, NoHide + If %MidiInPort% + MidiInDevice := MidiInPort - 1 + WriteIni() + Reload +Return + ; MIDI Rules dispatcher MidiRules: diff --git a/README.md b/README.md index 49e3b04..bcb0a6c 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Double click on `MidiToMacro.ahk`. To launch the program when Windows starts, you can add a shortcut to the file in your Start Menu\Startup folder. -The first time you launch the script, you will be prompted to choose a MIDI input device. If you need to change it later, you can right click on the system tray icon and click `MidiSet`. Or, you can open the `MidiMon`, change the input in the "Midi Input" dropdown menu, then reload the script manually. +The first time you launch the script, you will be prompted to choose a MIDI input device. If you need to change it later, you can right click on the system tray icon and click `MidiSet`. Or, you can open the `MidiMon`, and change the input in the "Midi Input" dropdown menu; the script will automatically reload. To see a log of recent MIDI input messages and any output events, right click on the system tray icon and click `MidiMon`. You can close this window, and the script will keep running in the background.