Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1051413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:55:40+00:00 2026-05-16T16:55:40+00:00

In a c++ program run on Win7, is there a way to fake a

  • 0

In a c++ program run on Win7, is there a way to fake a mouse movement or something like that, just to keep the screen saver from starting and the system from going to sleep? I’m looking for the minimal approach and I prefer not to use .NET.
Thanks,
-nuun

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T16:55:40+00:00Added an answer on May 16, 2026 at 4:55 pm

    Don’t mess with the screensaver settings, use SetThreadExecutionState. This is the API for informing windows on the fact that your application is active:

    Enables an application to inform the
    system that it is in use, thereby
    preventing the system from entering
    sleep or turning off the display while
    the application is running.

    , and

    Multimedia applications, such as video
    players and presentation applications,
    must use ES_DISPLAY_REQUIRED when they
    display video for long periods of time
    without user input

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a Java program run as root on Unix, that therefore can read
I am looking for the best way to make my desktop java program run
I have a program that I run through the command line and I wanted
I have a C#/.NET program that can run both as a console application and
I am interested in writing separate program modules that run as independent threads that
What's the best way to terminate a program and then run additional code from
When I run the program from IDE (VS2008) it works perfectly. When I want
How should I run another program from within my C program? I need to
Suppose you need to run a program on the world’s fastest supercomputer which will
I am new to Java and am trying to run a program using Eclipse.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.