Disable sleep mode with some programs


  1. Posts : 9
    windows 10
       #1

    Disable sleep mode with some programs


    Hi,
    Is there a way to disable sleep mode only with some specific programs that I choose ?
    Thank you
    Have a good day

    version 20H2 (build 19042.928)
      My Computer


  2. Posts : 43,121
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    Hi, the only way that immediately comes to mind is this:

    For each such program, launch it with a small Autohotkey (free scripting language) script that does this:
    a. Launch the program
    b. Launch Dont Sleep (a free program which- amongst other things- prevents sleep - has some command line options)
    c. In a loop, test for presence of the launched program.
    If not present, close Dont Sleep and exit the script.

    OR
    Have just one such script, but
    - in a loop test for presence of any such programs and if present, launch Dont Sleep.
    - in a second loop, close Dont Sleep if no such programs running
    - return to first loop.

    For interest:
    9 best tools to prevent your PC from sleeping or locking
      My Computers


  3. Posts : 9
    windows 10
    Thread Starter
       #3

    Hi dalchina
    Thanks for answering.
    I thought that there was a special W10 feature to do that
    It could be a good solution to launch a small application disabling sleep mode when specific process are on.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:23.
Find Us




Windows 10 Forums