Been thinking about this, and wondered if a simpler approach might work with less focus on what potion is selected and more on preventing user input being applied when it is "unnecessary".
I saw a mod that auto-unbinds your crouch key when equipping Thrassian Stranglers that made me rethink this
https://www.esoui.com/downloads/info...Assistant.html
Do you suppose it is possible to have a mod that simply auto-unbinds the Quickslot D-pad "up" while all your stats (or one selected by the user in settings) are at 100% (or maybe a custom user setting such as 50%), that way if it is accidentally tapped no potion will be consumed?
If that could work, I suppose the real question then is whether any unbind/rebind process can happen in the background "instantly" so as not to cause issues whenever a potion is required in combat.
Does the API allow mod authors to recognise what percent HP, Stam and Magicka are currently at and do something with that data?