Results 1 to 6 of 6

Thread: Always-on-display VB.NET

  1. #1

    Thread Starter
    Lively Member pourkascheff's Avatar
    Join Date
    Apr 2020
    Location
    Earth
    Posts
    64

    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.
    𝕬𝖒𝖎𝖗 𝕽. 𝕻𝖔𝖚𝖗𝖐𝖆𝖘𝖈𝖍𝖊𝖋𝖋

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Posts
    1,388

  3. #3

    Thread Starter
    Lively Member pourkascheff's Avatar
    Join Date
    Apr 2020
    Location
    Earth
    Posts
    64

    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?
    𝕬𝖒𝖎𝖗 𝕽. 𝕻𝖔𝖚𝖗𝖐𝖆𝖘𝖈𝖍𝖊𝖋𝖋

  4. #4
    Frenzied Member
    Join Date
    May 2014
    Location
    Central Europe
    Posts
    1,338

    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.

  5. #5
    Frenzied Member PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Newport, UK
    Posts
    1,465

    Re: Always-on-display VB.NET

    Quote Originally Posted by pourkascheff View Post
    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.

  6. #6
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,600

    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
  •  



Click Here to Expand Forum to Full Width