Script's screenshot only captures half the screen when it is locked. What could be the cause?

Don’t create duplicate topics, please.