I am using a very simple code in python 2.7.11 under windows 7.
def takeScreenshot(filename,directories,allConfigs):
im = pyautogui.screenshot()
im.save(os.path.join(directories['picsdir'],filename))
When I use this function, it takes a screenshot of the whole screen except the application that I really want which is samsung sidesync. When using this code, it shows me the whole screen but it is as if the samsung sidesync window has disappeared in the screenshot.
But if I do a print screen from the keyboard button and save to a file, it is there and I can see it.
I don't understand why the behavior should be different.