I want to take a screenshot automatically, when I enter Whatsapp. So I want to write a code which will automatically detect of I\'m entering Whatsapp. If it see the whatsapp tit