E
E
Espleth2014-09-14 09:02:36
Windows
Espleth, 2014-09-14 09:02:36

Interaction of the program with the system. How to do this?

I want to write a program that would interact with the system. For example, so that when you press ctrl + c, the selected text would be copied not only to the clipboard, but also to the program's own clipboard. And similar functions. Is this possible in c#?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aush, 2014-09-14
@Espleth

Realizable. For this particular example, you will need to put a global hook via WinAPI ( blogs.msdn.com/b/toub/archive/2006/05/03/589423.aspx , https://gist.github.com/Stasonix/3181083 )
Hook should be used if you want this functionality to work also in a situation where the user is copying from any other program, not only yours (yours is currently running in the background).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question