How to prevent sleep mode when is program running

shobuddy

Distinguished
Feb 12, 2009
124
0
18,680
Is there a way to stop Win 10 from going into sleep mode when certain program are running? For example, I use Samsung Smart View on my desktop to play content from the desktop to the TV. My sleep mode is set to 45 minutes so if the video I'm watching is more than 45 minutes, the computer goes into sleep mode and looses connection w/the TV, i.e the video stops. Obviously I can increase the sleep mode time but this is not a desired solution. If there is a way to prevent Windows from going into sleep mode based on a program running, that would be ideal. I'm open to other solution/suggestions as well.