zieren / wasted-youth-tracker

Limit kids' time on their (Windows) PC and get a summary of the window titles.
GNU General Public License v3.0
5 stars 0 forks source link

Handle "Program switcher", "<none>" etc. better #10

Closed zieren closed 3 years ago

zieren commented 3 years ago

These are currently counted against the default budget. Closing them doesn't really work and doesn't do any harm, but pops up irritating dialogs.

zieren commented 3 years ago

"MainWindow" and "Program Manager", which are always open, are now skipped. But the alt-tab switcher is called "Programmumschaltung", i.e. it is localized.

Empty window titles occur only when nothing is running at all. They need to be inserted to create a timestamp to compute the previous windows' interval, but need to be ignored in calculations.

zieren commented 3 years ago

This is fixed by skipping windows by process name (IGNORE_PROCESSES).