Created
April 14, 2018 07:18
-
-
Save nitink133/c0349618454eb0816af085ea1b4222f1 to your computer and use it in GitHub Desktop.
Screenshots.py is an python script for taking screenshots of android mobile using system and save these in system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
def Screenshot(n): | |
pageno=1 | |
for pageno in range(pageno,n): | |
print ("Wait...") | |
os.system("adb exec-out screencap -p > " +str(pageno)+".png") | |
os.system("adb shell input swipe 300 700 50 700") | |
Screenshot(8) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment