SHARE
TWEET

Untitled

a guest Sep 17th, 2019 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import pyautogui
  2. from pynput.keyboard import *
  3. import random
  4.  
  5. # ===== Settings ===== #
  6. delay = 1
  7. weite = 0.1
  8. resume_key = Key.f8
  9. pause_key = Key.f9
  10. exit_key = Key.esc
  11. # ==================== #
  12.  
  13. pause = True
  14. running = True
  15.  
  16. def on_press(key):
  17.     global running, pause
  18.     if key == resume_key:
  19.         pause = False
  20.         print("[Resume]")
  21.     elif key == pause_key:
  22.         pause = True
  23.         print("[Paused]")
  24.     elif key == exit_key:
  25.         running = False
  26.         print("[Exit]")
  27.  
  28. def display_controls():
  29.     print("// AutoClicker by me")
  30.     print("// - Settings: ")
  31.     print("\t delay = " + str(delay) + " sec" + "\n")
  32.     print("// - Controls: ")
  33.     print("\t F8 = Resume")
  34.     print("\t F9 = Pause")
  35.     print("\t ESc = Exit")
  36.     print("========================================")
  37.     print("Press F8 to start... ")
  38.  
  39. def main():
  40.     lis = Listener(on_press=on_press)
  41.     lis.start()
  42.  
  43.     display_controls()
  44.     while running:
  45.         if not pause:
  46.             pyautogui.click(pause=random.gauss(delay, weite))
  47.     lis.stop()
  48.  
  49. if __name__ == "__main__":
  50.     main()
  51. import pyautogui
  52. import subprocess
  53. from pynput.keyboard import *
  54. import random
  55.  
  56. # ===== Settings ===== #
  57. toggle_key = Key.f8
  58. exit_key = Key.f9
  59. # ==================== #
  60.  
  61. pause = True
  62. running = True
  63.  
  64. def on_press(key):
  65.     global running, pause
  66.     if key == toggle_key:
  67.         if pause:
  68.             pause = False
  69.             print("[Resume]")
  70.         else:
  71.             pause = True
  72.             print("[Paused]")
  73.     elif key == exit_key:
  74.         running = False
  75.         print("[Exit]")
  76.  
  77. def display_controls():
  78.     print("// AutoClicker by me")
  79.     print("// - Controls: ")
  80.     print("\t F8 = Start/Pause")
  81.     print("\t F9 = Exit")
  82.     print("========================================")
  83.     print("Press F8 to start... ")
  84.  
  85. def main():
  86.     lis = Listener(on_press=on_press)
  87.     lis.start()
  88.  
  89.     display_controls()
  90.     while running:
  91.         if not pause:
  92.             # ore
  93.             pyautogui.moveTo(435 + random.randint(-15,15), 110 + random.randint(-15,15), duration=random.gauss(0.7, 0.01))
  94.             pyautogui.click()
  95.             pyautogui.sleep(1.6)
  96.             # ore
  97.             pyautogui.moveTo(550 + random.randint(-15,15), 215 + random.randint(-15,15), duration=random.gauss(0.8, 0.01))
  98.             pyautogui.click()
  99.             pyautogui.sleep(1)
  100.             # ore
  101.             pyautogui.sleep(0.8)
  102.             # drop
  103.             pyautogui.keyDown('shift')
  104.             pyautogui.moveTo(740 + random.randint(-7,7), 260 + random.randint(-7,7), duration=random.gauss(0.78, 0.01))
  105.             pyautogui.click()
  106.             pyautogui.moveTo(785 + random.randint(-7,7), 260 + random.randint(-7,7), duration=random.gauss(0.2, 0.01))
  107.             pyautogui.click()
  108.             pyautogui.keyUp('shift')
  109.     lis.stop()
  110.  
  111. if __name__ == "__main__":
  112.     main()
  113. import pyautogui
  114. import subprocess
  115. from pynput.keyboard import *
  116. import random
  117.  
  118. # ===== Settings ===== #
  119. toggle_key = Key.f8
  120. exit_key = Key.f9
  121. # ==================== #
  122.  
  123. pause = True
  124. running = True
  125.  
  126. def on_press(key):
  127.     global running, pause
  128.     if key == toggle_key:
  129.         if pause:
  130.             pause = False
  131.             print("[Resume]")
  132.         else:
  133.             pause = True
  134.             print("[Paused]")
  135.     elif key == exit_key:
  136.         running = False
  137.         print("[Exit]")
  138.  
  139. def display_controls():
  140.     print("// AutoClicker by me")
  141.     print("// - Controls: ")
  142.     print("\t F8 = Start/Pause")
  143.     print("\t F9 = Exit")
  144.     print("========================================")
  145.     print("Press F8 to start... ")
  146.  
  147. def main():
  148.     lis = Listener(on_press=on_press)
  149.     lis.start()
  150.  
  151.     display_controls()
  152.     while running:
  153.         if not pause:
  154.             # logs in bank
  155.             pyautogui.moveTo(585 + random.randint(-7,7), 240 + random.randint(-7,7), duration=random.gauss(0.5, 0.05))
  156.             pyautogui.click()
  157.             # close bank
  158.             pyautogui.hotkey('esc')
  159.             # knife
  160.             pyautogui.moveTo(870 + random.randint(-7,7), 475 + random.randint(-7,7), duration=random.gauss(0.5, 0.05))
  161.             pyautogui.click()
  162.             # logs in inventory
  163.             pyautogui.moveTo(825 + random.randint(-7,7), 475 + random.randint(-7,7), duration=random.gauss(0.13, 0.01))
  164.             pyautogui.click()
  165.             for x in range(26):
  166.                 pyautogui.moveTo(870 + random.randint(-5,5), 475 + random.randint(-5,5), duration=random.gauss(0.09, 0.01))
  167.                 pyautogui.click()
  168.                 pyautogui.moveTo(825 + random.randint(-5,5), 475 + random.randint(-5,5), duration=random.gauss(0.09, 0.01))
  169.                 pyautogui.click()
  170.  
  171.             # bank
  172.             pyautogui.moveTo(590 + random.randint(-10,10), 190 + random.randint(-10,10), duration=random.gauss(0.35, 0.03))
  173.             pyautogui.click()
  174.             # deposit
  175.             pyautogui.moveTo(740 + random.randint(-7,7), 258 + random.randint(-7,7), duration=random.gauss(0.6, 0.05))
  176.             pyautogui.click()
  177.     lis.stop()
  178.  
  179. if __name__ == "__main__":
  180.     main()
  181. import pyautogui
  182. import subprocess
  183. from pynput.keyboard import *
  184. import random
  185.  
  186. # ===== Settings ===== #
  187. toggle_key = Key.f8
  188. exit_key = Key.f9
  189. # ==================== #
  190.  
  191. pause = True
  192. running = True
  193.  
  194. def on_press(key):
  195.     global running, pause
  196.     if key == toggle_key:
  197.         if pause:
  198.             pause = False
  199.             print("[Resume]")
  200.         else:
  201.             pause = True
  202.             print("[Paused]")
  203.     elif key == exit_key:
  204.         running = False
  205.         print("[Exit]")
  206.  
  207. def display_controls():
  208.     print("// AutoClicker by Me")
  209.     print("// - Controls: ")
  210.     print("\t F8 = Start/Pause")
  211.     print("\t F9 = Exit")
  212.     print("========================================")
  213.     print("Press F8 to start... ")
  214.  
  215. def main():
  216.     lis = Listener(on_press=on_press)
  217.     lis.start()
  218.  
  219.     display_controls()
  220.     while running:
  221.         if not pause:
  222.             # ore
  223.             pyautogui.moveTo(425 + random.randint(-15,15), 90 + random.randint(-15,15), duration=random.gauss(0.56, 0.02))
  224.             pyautogui.click()
  225.             pyautogui.sleep(0.78)
  226.             # ore
  227.             pyautogui.moveTo(315 + random.randint(-15,15), 200 + random.randint(-15,15), duration=random.gauss(0.8, 0.02))
  228.             pyautogui.click()
  229.             pyautogui.sleep(0.8)
  230.             # ore
  231.             pyautogui.moveTo(430 + random.randint(-15,15), 310 + random.randint(-15,15), duration=random.gauss(0.8, 0.02))
  232.             pyautogui.click()
  233.             pyautogui.sleep(0.8)
  234.             # drop
  235.             pyautogui.keyDown('shift')
  236.             pyautogui.moveTo(740 + random.randint(-7,7), 260 + random.randint(-7,7), duration=random.gauss(0.7, 0.01))
  237.             pyautogui.click()
  238.             pyautogui.moveTo(782 + random.randint(-7,7), 260 + random.randint(-7,7), duration=random.gauss(0.12, 0.01))
  239.             pyautogui.click()
  240.             pyautogui.moveTo(825 + random.randint(-7,7), 260 + random.randint(-7,7), duration=random.gauss(0.12, 0.01))
  241.             pyautogui.click()
  242.             #pyautogui.moveTo(865 + random.randint(-5,5), 285 + random.randint(-5,5), duration=random.gauss(0.05, 0.002))
  243.             #pyautogui.click()
  244.             pyautogui.keyUp('shift')
  245.     lis.stop()
  246.  
  247. if __name__ == "__main__":
  248.     main()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top