problem getting some code to run automatically at startup 1903


  1. Posts : 333
    Windows 10 Pro
       #1

    problem getting some code to run automatically at startup 1903


    I have successfully installed the following code to provide a notification when the battery in my HP 840 G3 Elitebook reaches 80% charge. At first it worked, but didn't show when I was watching a video full-screen. Then I started messing with Windows Settings, and have tried many ways (adding code) but it will only run manually, not automatically at start up and is thus useless (I can instead simply look at Windows batt level monitor).

    Here is what was in the original startup folder:

    problem getting some code to run automatically at startup 1903-original-startup.png



    Here it is now

    problem getting some code to run automatically at startup 1903-current-startup.png

    However the additional lines of code, saved as a file called "fullbatt.vbs" to all files, will ONLY run manually, not at startup.


    The weird thing is that it worked automatically once, in some form, since deleted .... before I messed with settings and since turned off all Focus Assist, and re-allowed background apps and notifications (I can still get normal blue/white Windows notifications)

    Ideas? (I ran DISM repair and scannow).
      My Computers


  2. Posts : 13,960
    Windows 10 Pro X64 21H1 19043.1503
       #2

    Look at this, see if it helps: launch VBS script after PC startup
      My Computers


  3. Posts : 333
    Windows 10 Pro
    Thread Starter
       #3

    Well, I got it to work again (at startup) and the above was an important factor, but I had to do several other things as well, since EVERY online guide used different ways to find the startup files (one common and one for me as Admin), and all used different names for the paths, etc., since I presume MS keeps changing stuff. B.t.w., there is nothing so stupid as software which must be precisely addressed. I'd say Fussy or even Futzy rather than Fuzzy Logic.

    Thanks ever so much for your part of the solution!

    It's because I discovered that bouncing the batt. charge between 40% and 80% can quadruple batt. life. And the MS Store Full Batt. Warning App (can set "full" %) is really tracking software ("Anti-Theft") AND you have to pay to eliminate the LARGE moving ads it shows.



    success

    problem getting some code to run automatically at startup 1903-batt-startup.png

    - - -

    - -

    - - - Updated - - -

    Then it stopped working. After far too many hours messing with it I finally backtracked and removed everything I had done and manually restored the registry (System Restore did not). Finally I re-tried what is written in the below link and it now works PERFECTLY, exactly as wished. No registry changes to get .vbs to run, etc. VERY simple if exactly followed (I must have missed something the first time).

    It makes a typical Windows alert sound and periodically shows a small popup indicating the battery is full and displays the % charge (I changed "full" to 80% in the code) .... all even when watching a streaming video full-screen. No problem to pause (if I want) or go back a few seconds, which it does anyway on some sites when re-starting the video (temp files).


    FullBattery:

    Get A Full Battery Notification When Your Battery Is Full In Windows 10 - Windows Clan

    - - - Updated - - -
    Last edited by Airider; 25 Sep 2019 at 03:46.
      My Computers


  4. Posts : 13,960
    Windows 10 Pro X64 21H1 19043.1503
       #4

    That's great.Glad you have it working the way you want.
      My Computers


  5. Posts : 333
    Windows 10 Pro
    Thread Starter
       #5

    current startup (without Registry modifications)


    problem getting some code to run automatically at startup 1903-current-startup.png



    previous: note currently REMOVED and actually unneeded problem-causing "REG_EXPAND_SZ"

    problem getting some code to run automatically at startup 1903-batt-startup.png
      My Computers


 

  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 16:56.
Find Us




Windows 10 Forums