Detecting that the user is away from the PC with .NET

前端 未结 4 965
借酒劲吻你
借酒劲吻你 2020-12-20 04:10

I have a desktop application in which I would like to know two things:

  1. Is the user currently on the PC (more specifically, is he giving any input to the PC), s
4条回答
  •  难免孤独
    2020-12-20 04:43

    Rather than figuring out when to run more intensive work... Consider doing your "intensive work" as early as you can, but at a lower thread priority.

    I don't think your questions have an answer in pure C#, unless you poll the mouse position and observe movements... Or something like that.

提交回复
热议问题