pyfire for ld emulator
from pynput.keyboard import Key, Controller
import pyautogui
import time
import keyboard
import random
import win32api, win32con
#X: 816 Y: 431 RGB: (161, 61, 54)
#X: 820 Y: 429 RGB: (155, 69, 56)
keybord = Controller()
n = 0
def shoot():
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,0,0)
time.sleep(0.01)
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,0,0)
def scope():
win32api.mouse_event(win32con.MOUSEEVENTF_RIGHTDOWN,0,0)
time.sleep(0.01)
win32api.mouse_event(win32con.MOUSEEVENTF_RIGHTUP,0,0)
def googlu():
keybord.press('q')
time.sleep(0.01)
keybord.release('q')
win32api.SetCursorPos((1599,0))
time.sleep(0.1)
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,0,0)
time.sleep(0.01)
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,0,0)
time.sleep(0.1)
keybord.press(Key.ctrl)
time.sleep(0.01)
keybord.release(Key.ctrl)
win32api.SetCursorPos((1345,207))
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,0,0)
time.sleep(0.01)
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,0,0)
keybord.press(Key.ctrl)
time.sleep(0.01)
keybord.release(Key.ctrl)
while keyboard.is_pressed('s') == False:
pass
while keyboard.is_pressed('q') == False:
#print(pyautogui.pixel(816,431)[0])
#if pyautogui.pixel(816,431)[0] <= 180 <= 140:
# if pyautogui.pixel(816,431)[0] < 180:
# shoot()
# print(pyautogui.pixel(816,431)[0])
# time.sleep(0.1)
#if print(pyautogui.pixel(816,431)[0] == 161):
# shoot()
# print(pyautogui.pixel(816,431)[0])
# time.sleep(0.1)
if n == 2:
if keyboard.is_pressed('i') == True:
n = 0
else:
pass
if pyautogui.pixel(811,813)[0] < 220:
print(pyautogui.pixel(811,813)[0])
if n == 0:
googlu()
n = 2
else:
pass
if keyboard.is_pressed('f') == True:
whipe = 0
while whipe <= 10:
if keyboard.is_pressed('v') == True:
whipe = 13
if pyautogui.pixel(811,813)[0] < 220:
googlu()
scope()
time.sleep(0.1)
shoot()
time.sleep(0.1)
scope()
whipe += 1
Comments
Post a Comment