I\'m making screenshots of the android phone screen using adb. But I need to control myself when the end is reached to stop the script. It there a way to stop the script automat