How do I check for PROGRAM idle time, as opposed to SYSTEM idle time?

前端 未结 3 2246
慢半拍i
慢半拍i 2021-02-20 02:11

I have a program that occasionally needs to scan some directories recursively (an improvement for this part of the program is in the pipeline, but won\'t be ready for a while).

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-20 02:45

    ...but I would prefer to activate the function even when the user is working with other programs on the same computer. This way, if he switches to another program, I could catch up on the scanning I need to do.

    Stop the scanning in Application.OnActivate and resume in Application.OnDeactivate.

提交回复
热议问题