This is possible too, although I won't say it's clean:
on *:start:{ .timer -h 0 50 rc_check }
alias rc_check {
if ($mouse.key & 16) && (!%floodprotection) {
hw_update
inc -u5 %floodprotection
}
}
I haven't tried it but I doubt the menu will update prior to it opening. I suspect you will have to right click, then right click again to see the updated menu.
Your best bet would be to use a small custom dll rather than all of these hacks.
Btw, the reason for the flood protection in the above script is because the script catches about 6 right clicks in the time it takes a menu to open