There's really no way to interact with what's going on with a Hotkey in the UI unfortunately. I'm not even sure if you can decipher which hotbar is which via UI scripting.
Far as I know, only inside the hotbar window itself can you mess with the hotbar.