How to Solve NameError: name 'GetSystemMetrics' is not defined -- win32api

Solution: Import the 'GetSystemMetrics' module

To Solve the error, add the following line to the top of your code.

from win32api import GetSystemMetrics

 

For more information:
Python win32api GetSystemMetrics