No, it won't work like that, but you can try to arrange an actual hotbar over the player window. If you resize the bar accordingly then it should work fine (you may need to use an otherwise invisible bar for best looks). Either drag the potions you need on there or make a macro for it.
|