How can you correctly register hotkeys with Windows with your Fusion programs? I know that we can already listen for keypresses even when a Fusion-built application is minimised or in the system tray, by using the Key or Is Key Pressed Outside objects. But it would be good to be able to correctly register these hotkeys with Windows the 'proper' way, to help prevent conflicts with other programs that might try to use the same ones. I have a hunch that managing these hotkeys via the OS might also be more performant than using the Key object.
From what I can understand of the links below, you have to use a system function called RegisterHotkey, and you have to ensure that your application can communicate with Windows using a "Message Loop". But I have no idea how to do any of that. Would anyone be able to explain how I might go about the process?
Link 1: Please login to see this link.
Link 2: Please login to see this link.