I have written the code to determine the boundaries of the window for a given application for Mac OS. However, I don't have access to a Windows machine so there needs to be windows support added to the get_bounds() function on monitor.py.
Steps to do this:
Go to line 113, and delete lines 113-115. This is where the code that finds the boundaries of an application by name should be put.
You should find code that can find the boundaries of an application by name in Windows (and the name you're going to use is Discord). A starting point to look for things which can do this might be line 54, where Lasal wrote code that finds the name of an application. Boundaries should have four coordinates: the first one usually describes how many pixels are to the left of the left boundary of the application, the second one the number on the right, the third the number above, and the fourth the number below, like this:
I have written the code to determine the boundaries of the window for a given application for Mac OS. However, I don't have access to a Windows machine so there needs to be windows support added to the
get_bounds()
function on monitor.py.Steps to do this:
Thanks guys :)