I used pyautogui and PIL to capture screenshot after clicking on battery icon. But the screenshot doesn't contain battery status window. When I use print-screen key, status window is available in the screenshot. Need suggestions to solve this.
You can use greenshot opensource tool for windows, using hotkey you can take almost anything as a screenshot.
How to take a screenshot in windows 10 when there is an extra pop up on desktop