Greetings programmers!
I was trying to find out if it was possible to use hotkeys with menuitems. My temporary work around is to copy what the menuitem does into a seperate function and just using the hotkey with that function. But I was just curious if there was a way to use a hotkey (other than the alt keys which I already have built in) to press menu items and run the associated task with that menu button.
So far I have tried using
hotkeyset("^{F1}"), $menuitem1)
...but this doesn't work.
Again, currently I have the hotkey call a function that does everything I need, so it's not a big issue - just a curiosity.
Thanks for any thoughts on the matter.