I have this problem: I need to somehow catch the click of the user and display the object name in the console, on which he clicked. For example, a user on the desktop clicked on the Folder folder. Therefore, the folder name Folder should be displayed in the console.
- Keylogger, look in search, on githabe. There is a lot of sense to hang a hook on mouse events. - NewView pm
- You can use VisualTreeHelper (in wpf). When you click, you can catch a tree, and from it pull out, for example, the topmost element and information from it. In particular, you can use this method: docs.microsoft.com/ru-ru/dotnet/api/… - alladuh
- @alladuh That's really grateful. No longer hoped to get an answer. - Castiel_Luciefer2000 3:42 pm
|