I want to write for myself a simple service to keep track of what programs I work with during the day and how much time I spend on them.
How do I imagine the work of such a program? I have a program running on my PC in the background that will monitor the current active window and how active it is. The following data will be sent to the server:
Процесс Был активен phpstrom.exe 3600 Well, then this data will be displayed in the form of graphs.
The question is - is it possible to implement this in C #? Unfortunately, I have no experience developing software for Windows, so I have no idea what I need to use. Could you suggest a technology and an example of how you can get the process name of the current active window?