npocmaka / batch.scripts

batch script utils and examples by npocmaka -
https://www.linkedin.com/in/npocmaka/
MIT License
1.08k stars 873 forks source link

Capture screen not working as scheduled task #28

Open jangatzke opened 4 years ago

jangatzke commented 4 years ago

I am using your caputre screen script and it is working great if I start it manually. However ist das not work when it is started by a scheduled task. I am getting no error, but the image file is not being created.

npocmaka commented 4 years ago

If there's no user logged on windows will not create an UI session and this might be the reason. Also if you are using a system session for the scheduled task also it creates an separate session without UI.

Try to play a little bit with the settings of the windows and for example to turn off the sleep mode.

On Thu, Aug 6, 2020 at 4:29 PM jangatzke notifications@github.com wrote:

I am using your caputre screen script and it is working great if I start it manually. However ist das not work when it is started by a scheduled task. I am getting no error, but the image file is not being created.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/npocmaka/batch.scripts/issues/28, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCS3VXKHWPQGGF7ICCT22TR7KV4TANCNFSM4PWS2S6Q .