Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. import autopy
  2. import pyautogui
  3. ar = open("autodig.txt", "r+")
  4. down = ar.read().strip()
  5. ar.close()
  6. ar = open("autodig.txt","w")
  7. if (down == "True"):
  8.     ar.write("False")
  9.     autopy.mouse.toggle(autopy.mouse.Button.LEFT, True)
  10.     while down == "True":
  11.         {
  12.         if (down == "True"):
  13.             pyautogui.moveRel(0, 10)
  14.         else:
  15.         }
  16. else:
  17.     ar.write("True")
  18.     autopy.mouse.toggle(autopy.mouse.Button.LEFT, False)
  19. ar.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement