-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcatchthemall.py
38 lines (32 loc) · 1.35 KB
/
catchthemall.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import keyboard
import time
import pyautogui
import requests
import random
import string
# You want to install these modules first before running, or use the requirements.txt file attached!
def screenshot():
press = '0'
amount = '1'
theprefix = ']'
while True: # INFITE LOOP TIME!
if keyboard.is_pressed("SHIFT"):
if keyboard.is_pressed("Z"):
theprefix = input("Please enter a new prefix!\n")
print("Saved, you can now press", theprefix, "to screenshot your game!")
if keyboard.is_pressed(theprefix): # if the assaigned key is pressed
if press == '1':
pass
elif press == '0':
print('File has been saved')
letters = string.ascii_lowercase
result_str = ''.join(random.choice(letters) for i in range(6))
myScreenshot = pyautogui.screenshot()
myScreenshot.save(r'(INSERT PATH HERE)\Images\SCAMMER{}.png'.format(result_str) ) # Where it saves the file! (Change the (INSERTPATHHERE), with the path leading to the images folder!
press = '1'
time.sleep(5)
press = '0'
pass
else:
pass # if user pressed a key other than the assigned key, then it will pass
screenshot()