-
Jul 3rd, 2021, 12:11 PM
#1
Thread Starter
Hyperactive Member
Always-on-display VB.NET
Hi all,
Is there any codes to force computer not to dim light, go to screensaver or standby? Like how they act when a media-player is active or a game is going on in background.
Last edited by pourkascheff; Jul 18th, 2021 at 05:19 AM.
-
Jul 5th, 2021, 08:39 AM
#2
Re: Always-on-display VB.NET
-
Jul 18th, 2021, 05:20 AM
#3
Thread Starter
Hyperactive Member
Re: Always-on-display VB.NET
I'm not sure this is the correct way :-) Is there any other way not to perform a quick system power consumption settings?
-
Jul 18th, 2021, 05:27 AM
#4
Re: Always-on-display VB.NET
it is the correct way. it might not be what you want. i do think that moving the mouse pointer programatically from time to time does also prevent windows from taking power saving measures. this might be cleaner if you only want to prevent the screensaver while your app is active.
-
Jul 18th, 2021, 08:52 AM
#5
Re: Always-on-display VB.NET
Originally Posted by pourkascheff
I'm not sure this is the correct way :-) Is there any other way not to perform a quick system power consumption settings?
https://stackoverflow.com/questions/...ram-is-running is probably worth looking at as it shows an API that lets windows know your app needs to avoid power saving etc. The codeguru link is changing the global profile, this will change your entire system - not just your application. You really shouldn't be making global changes to solve a local problem.
-
Jul 19th, 2021, 09:55 AM
#6
Re: Always-on-display VB.NET
If you don't mind a tray app done in C# see the following. Only requirement is rights to read, write to the system registry so it can startup at windows startup.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|