E
E
Edward2017-04-28 13:15:27
C++ / C#
Edward, 2017-04-28 13:15:27

How to make code execution on a key?

Let's say I have a code that should be executed when I press a key, for example MOUSE4.
Eg: I started the program, and in order to start the selection (eg) I have to press F5.
How can this be implemented?
Similar to the one in the AHK binder

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arkadiy Parinov, 2017-04-28
@Young_khv

If I understand the question correctly, then this answer will suffice:
How to call a function in C# on click with the hot key pressed?
Well, use the key codes you need, here is a list for you:
https://msdn.microsoft.com/en-us/library/aa243025(...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question