pb-osx-globalhotkeys

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
deseven
Enthusiast
Enthusiast
Posts: 362
Joined: Wed Jan 12, 2011 3:48 pm
Location: Serbia
Contact:

pb-osx-globalhotkeys

Post by deseven »

I wrote a module for managing global (system-wide) hotkeys on OS X.
It's based on this code and intended to be used with ShortcutGadget() (also, check this thread).
Because of that you can forget about all those keyboard codes and constants, just use the power of unicode and create hotkeys by passing simple strings like "⇧⌘S":

Code: Select all

globalHK::add("⇧⌘S",event.i)
Image

github
direct download

Feel free to contribute.
User avatar
deseven
Enthusiast
Enthusiast
Posts: 362
Joined: Wed Jan 12, 2011 3:48 pm
Location: Serbia
Contact:

Re: pb-osx-globalhotkeys

Post by deseven »

I've also made a very simple hotkey manager based on this module. Can be used as a more complex example.
Post Reply