Thanks, but I tried that before. Until now, I found nothing similar to my problem.
Little programs that simulate user activity seem to work sometimes, but not always. Programs like qBittorrent, which have an option to prevent sleep when a torrent is active, also work, sometimes. And yes, I have enabled the option that allows programs to do that, all four of them, in group policy.