You could try making it so that your robot will run when the screen is maximized, then the offsets are more or less based off of the whole screen.