简体   繁体   中英

How to start a UWP app with a global shortcut through a background Win32 process?

I am working on a UWP screen recorder, I need a global shortcut (keyboard hotkey) that just launches the app, so I need a background process that runs from start-up, allowing me to launch the app at any time. I don't need to perform any in-app action. I could find some tutorials about global shortcuts in uwp apps, but they refer only to in-app actions and the Win32 process doesn't run with the app closed, so I couldn't figure out how to do with my app.

Stefan Wick (form MSFT) had a detailed blog post about how you can do this.

As he mentions at the end of the blog post, another SO thread was the inspiration:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM