-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
43 lines (36 loc) · 1.38 KB
/
main.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
39
40
41
42
import pyautogui
import keyboard
import time
import random
from bin import detected_fish
from datetime import datetime
import ctypes
print(f'{datetime.now().replace(microsecond=0)} || BOT loading. Please wait 5 second!')
time.sleep(5)
u = ctypes.windll.LoadLibrary("user32.dll")
pf = getattr(u, "GetKeyboardLayout")
if hex(pf(0)) == '0x4190419':
keyboard.press_and_release('alt+shift')
while True:
try:
print(f'{datetime.now().replace(microsecond=0)} || Start catch fish!')
keyboard.press_and_release('e')
time.sleep(0.2)
keyboard.press_and_release('`')
detected_fish.detected()
print(f'{datetime.now().replace(microsecond=0)} || Pulling Out fish!')
pyautogui.mouseDown(button='left')
time.sleep(15)
pyautogui.mouseUp(button='left')
print(f'{datetime.now().replace(microsecond=0)} || EZ FISH!!!')
pause = random.random().__round__(1) + random.random().__round__(1)
if pause < 0.5:
pause = 0.5
time.sleep(0.1)
keyboard.press_and_release('`')
time.sleep(pause)
except Exception as error:
print(f'{datetime.now().replace(microsecond=0)} || ERROR: {error} || Try restarting the applications!')
with open('crashlog.txt', 'a') as file:
file.write(f'{datetime.now().replace(microsecond=0)} || ERROR: {error}!')
time.sleep(5)