my laptop (gl504gm) has the ability to stop charging when it arrives at a given percentage (example 60%) thanks to the ASUS's app battery healt charging. Unfortunately this is not always working and i am writing a small powershell script to overcome it
the problem is that i can't recognize when the laptop is charging and when it is connected to the AC source but not charging
the output from the code below is absolutely the same
Get-CimInstance -Class "Win32_Battery"
https://gist.github.com/aster94/d905dde4e30375e9154251223bed0969Any of you have any idee of what i can try to recognize the two states?