Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import pyautogui
- from logfile2 import first_input, second_input, third_input, input_value, check_number
- import keyboard
- alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i',
- 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',
- 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
- stopped = 0
- def force_stop():
- global stopped
- stopped = 1
- time.sleep(9999)
- force_stop()
- def writer():
- global first_input
- global second_input
- global third_input
- global input_value
- global check_number
- third_input += 1
- if third_input == 26:
- second_input += 1
- third_input = 0
- if second_input == 26:
- first_input += 1
- second_input = 0
- if first_input == 26:
- print('passed through everything!')
- input_value = '\'' + str(alphabet[first_input]) + str(alphabet[second_input]) + str(alphabet[third_input]) + '\''
- check_number = str(first_input * 26 ** 2 + second_input * 26 + third_input)
- find()
- def page_loding():
- for i in range(0, 2000):
- if pyautogui.pixelMatchesColor(84, 10, (7, 6, 9)) and pyautogui.pixelMatchesColor(93, 20, (7, 6, 9)) is True:
- if pyautogui.pixelMatchesColor(937, 357, (91, 152, 196)) is True and pyautogui.pixelMatchesColor(361, 379, (27, 40, 56)) is True and pyautogui.pixelMatchesColor(210, 739, (16, 24, 34)) is True:
- append_file = open('workingid.py','a')
- append_file.write('\nWorking_ID = ' + str(input_value) + ' #Check Number: '+ check_number)
- append_file.close()
- writer()
- time.sleep(0.1)
- pyautogui.click(83, 47)
- page_loding()
- def find():
- if stopped == 1:
- print('Stopped!!')
- force_stop()
- pyautogui.doubleClick(576, 52)
- pyautogui.typewrite(alphabet[first_input] + alphabet[second_input] + alphabet[third_input], interval=0.1)
- pyautogui.press('enter')
- append_file = open('logfile2.py','a')
- append_file.write('\nfirst_input = ' + str(first_input) + ' #Number ' + alphabet[first_input] + ' #Value\n')
- append_file.write('second_input = ' + str(second_input) + ' #Number ' + alphabet[second_input] + ' #Value\n')
- append_file.write('third_input = ' + str(third_input) + ' #Number ' + alphabet[third_input] + ' #Value\n')
- append_file.write('input_value = ' + input_value + '\n')
- append_file.write('check_number = ' + check_number + ' #Check Count!\n')
- append_file.close()
- print('\nfirst_input = ' + str(first_input) + ' #Number ' + alphabet[first_input] + ' #Value')
- print('second_input = ' + str(second_input) + ' #Number ' + alphabet[second_input] + ' #Value')
- print('third_input = ' + str(third_input) + ' #Number ' + alphabet[third_input] + ' #Value')
- print('input_value = ' + input_value)
- print('check_number = ' + check_number + ' #Check Count!')
- page_loding()
- keyboard.add_hotkey('del', force_stop, trigger_on_release=True)
- writer()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement