mirror of
https://github.com/RootKit-Org/AI-Aimbot.git
synced 2025-06-21 02:41:01 +08:00
Made quit key easy to adjust
This commit is contained in:
parent
37b42678cc
commit
3e014eb1be
11
main.py
11
main.py
@ -1,12 +1,8 @@
|
|||||||
from unittest import result
|
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
import pyautogui
|
import pyautogui
|
||||||
import gc
|
import gc
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import os, json, cv2, random
|
import cv2
|
||||||
from PIL import Image
|
|
||||||
import time
|
import time
|
||||||
import mss
|
import mss
|
||||||
import win32api, win32con
|
import win32api, win32con
|
||||||
@ -32,6 +28,9 @@ def main():
|
|||||||
# Person Class Confidence
|
# Person Class Confidence
|
||||||
confidence = 0.5
|
confidence = 0.5
|
||||||
|
|
||||||
|
# What key to press to quit and shutdown the autoaim
|
||||||
|
aaQuitKey = "Q"
|
||||||
|
|
||||||
# If you want to main slightly upwards towards the head
|
# If you want to main slightly upwards towards the head
|
||||||
headshot_mode = True
|
headshot_mode = True
|
||||||
|
|
||||||
@ -83,7 +82,7 @@ def main():
|
|||||||
# Main loop Quit if Q is pressed
|
# Main loop Quit if Q is pressed
|
||||||
last_mid_coord = None
|
last_mid_coord = None
|
||||||
aimbot=False
|
aimbot=False
|
||||||
while win32api.GetAsyncKeyState(ord('Q')) == 0:
|
while win32api.GetAsyncKeyState(ord(aaQuitKey)) == 0:
|
||||||
# Getting screenshop, making into np.array and dropping alpha dimention.
|
# Getting screenshop, making into np.array and dropping alpha dimention.
|
||||||
npImg = np.delete(np.array(sct.grab(sctArea)), 3, axis=2)
|
npImg = np.delete(np.array(sct.grab(sctArea)), 3, axis=2)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user