R
R
rad952019-09-19 20:59:15
WPF
rad95, 2019-09-19 20:59:15

How to maximize a window by pressing hotkeys?

There is an application on wpf. How can I, provided that the application is minimized, expand it by pressing hot keys? Those. Expand not in the sense of full screen, but show it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MrDywar Pichugin, 2019-09-19
@rad95

As far as I understand, pressing the key is not directed to the window of your application, but to any other, for example Explorer. Since such actions are not directed to your app, you will not be able to catch them in the standard way. For example, I have a calculator and a browser open, what I write in the browser does not fall into the calculator, and vice versa.
To catch such clicks as you want, you need a global hook, i.e. you will catch all clicks in Windows.
Global keyboard capture in C# application

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question