The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Prevent Monitor Sleep?

    Discussion in 'Windows OS and Software' started by ViciousXUSMC, Sep 3, 2011.

  1. ViciousXUSMC

    ViciousXUSMC Master Viking NBR Reviewer

    Reputations:
    11,461
    Messages:
    16,824
    Likes Received:
    76
    Trophy Points:
    466
    I set my monitor to sleep after 4 minutes, there is a program or two that I occasionally use that seems to not input any commands to windows to let it know I am using the computer and the mouse is not used.

    So every 4 minutes when my monitor starts going black I have to move the mouse around to wake the screen.

    What I need is a simple program or way to prevent the monitor from going to sleep but I dont want to go into my power settings and change the monitor time because I will forget to change it back and its more work that I want to do every time I use the program.

    Anybody know a simple program/fix for this?
     
  2. redrazor11

    redrazor11 Formerly waterwizard11

    Reputations:
    771
    Messages:
    1,309
    Likes Received:
    0
    Trophy Points:
    55
    autohotkey macro that moves the mouse every 3min: 59sec :p

    Code:
    loop { ;inifinite until script is quit manually
    
    Sleep, 239000  		;1000 = 1 second, 240000 = 4 minutes
    
    MouseMove, 10, 10, 5, R  ;Move mouse 10+ relative to current pos, speed of 5
    
    Sleep, 239000
    
    MouseMove, -10, -10, 5, R  ;Move mouse 10- relative to current pos, speed of 5
    }
    
    Just run/exit it as needed. You could modify it with a toggle or launcher hotkey, but it's probably not necessary. You can also make the mouse movement smaller so that it doesn't affect any normal movements you might want to make while the script is running.

    There's tons of stuff on the web about writing scripts, so I'm sure it'll be no prob for you to modify if needed
     
  3. ViciousXUSMC

    ViciousXUSMC Master Viking NBR Reviewer

    Reputations:
    11,461
    Messages:
    16,824
    Likes Received:
    76
    Trophy Points:
    466
    Yeah I knew I could do a mouse move script (can even compile it to a self running exe) I hate the idea of something taking control of my mouse though. I guess bad memories of the days when I was writing glovepie scripts an had to fight my computer for 10 minutes trying to get control of my mouse again so I could close the program.

    But for now it will work and I can share it easily with friends.
     
  4. J&SinKTO

    J&SinKTO Notebook Deity

    Reputations:
    107
    Messages:
    767
    Likes Received:
    0
    Trophy Points:
    30
  5. ViciousXUSMC

    ViciousXUSMC Master Viking NBR Reviewer

    Reputations:
    11,461
    Messages:
    16,824
    Likes Received:
    76
    Trophy Points:
    466
    I am using the mouse move script it works fine. I made my own .exe with it and can distribute it to friends and customize the time interval it uses.

    I changed it to move only 1 pixel every 2min 59sec (I use a 3min monitor sleep setting)
     
  6. redrazor11

    redrazor11 Formerly waterwizard11

    Reputations:
    771
    Messages:
    1,309
    Likes Received:
    0
    Trophy Points:
    55
    Cool, glad I could help. It's not perfect, but it gets the job done.