D
D
Dexaid2282021-01-27 06:02:08
WPF
Dexaid228, 2021-01-27 06:02:08

How can I launch an application in C# by pressing hotkeys?

I am making a program in C# that will help manage the computer i.e. when we enter the program, the program asks the user, let's say, his favorite game or programs he frequently uses, and then gives him several hot keys to run these programs, and then gives him the opportunity to bind some more keys at his discretion, then the program gets into autoload and the next time you start the computer, this program will run in the background and it will already be possible to use these hot keys, I don’t know how to launch some software by pressing them, can you tell me how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2021-01-27
@Dexaid228

.net does not contain methods for this, so you have to include win32 dll
Here is the first example from Google

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question