Hotkey for gadgets

Hello all, i'd like to make a gadget accessible after exporting it with an hotkey( ex. F9, as for DesktopX) combination. When i export my object as gadget i do not have the possibility to use hotkey to recall them. How can i add and hotkey combination? P.S.The gadget will run without DesktopX
2,123 views 3 replies
Reply #1 Top
i don't think that's would be easy to do (unless it's impossible but i hate this word)
you can still use this to create hotkey to run everything you may want on your PC:
https://www.stardock.com/products/klp/


Reply #2 Top
Unless you've disabled the right click menu then the ability to set a global hotkey should be there.

If you want to script something then look at Object.RegisterHotkey and Object.UnregisterHotkey under Object Namespace in the DesktopX manual.
Reply #3 Top
Thanks for answering.

What i mean is why when i export an object to a widget i have the F9/F10 function automatically in the right menu preferences, but if i export the object asa gadget with his own runtime i don't have it.

I checked Object.RegisterHotkey and Object.UnregisterHotkey, if i understood that's let me to set an hotkey for an object, what i'm still missing is how to make this hotkey behave as toggle Show/Hide function in a gadget.