Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pyautogui
- import time
- #pyautogui.displayMousePosition() --> Use this to identify corner pixels
- pyautogui.moveTo(20,20,0.5)
- pyautogui.click()
- def screengrab(book_length):
- time.sleep(1)
- print("Taking Screenshots...")
- for i in range(book_length):
- print(f"{i+1}/{book_length}")
- pyautogui.hotkey("shift","ctrl","alt","s")
- time.sleep(0.5)
- pyautogui.moveTo(2173,1394,0.5) #bottom right
- time.sleep(0.5)
- pyautogui.dragTo(275,55,2) #top left
- time.sleep(0.4)
- pyautogui.moveTo(1070,510,1)
- time.sleep(0.3)
- pyautogui.press("right") #next page
- time.sleep(1)
- print("Done")
- time.sleep(2)
- screengrab(100)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement