Pine: Neural-Network Aimbot (v2.0 by Wendel for Apex Legends)…
- User
Pine: Neural-Network Aimbot (v2.0 by Wendel for Apex Legends)
[INFO] press '0' to quit or ctrl+C in console... [INFO] loading neural-network from disk… [OKAY] OpenCL GPU Detected! [INFO] loading screencapture device… [OKAY] Aimbot enabled!
[ WARN:0@2.673] global ocl4dnn_conv_spatial.cpp:1933 cv::dnn::ocl4dnn::OCL4DNNConvSpatial::loadTunedConfig OpenCV(ocl4dnn): consider to specify kernel configuration cache directory through OPENCV_OCL4DNN_CONFIG_PATH parameter. OpenCL program build log: dnn/dummy Status -11: CL_BUILD_PROGRAM_FAILURE -cl-no-subgroup-ifp Error in processing command line: Don't understand command line argument "-cl-no-subgroup-ifp"! 16 FPS with 60 MS interpolation delay Traceback (most recent call last): File "C:\Users\Wendel\Desktop\Apex_Aimbot_PY\teste\pine.py", line 14, in pine.start(ENABLE_AIMBOT=True) File "C:\Users\Wendel\Desktop\Apex_Aimbot_PY\teste\lib\pine.py", line 225, in start set_pos(mouseX, mouseY) File "C:\Users\Wendel\Desktop\Apex_Aimbot_PY\teste\lib\pine.py", line 64, in set_pos ii.mi = pynput._util.win32.MOUSEINPUT(x, y, 0, (0x0001 | 0x8000), 0, ctypes.cast(ctypes.pointer(extra), ctypes.c_void_p)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'float' object cannot be interpreted as an integer
meu codigo abaixo:
import numpy as np from termcolor import colored import timeit import threading import imutils import time import mss import cv2 import os import signal import sys import pynput import ctypes import pyautogui from lib.grab import grab_screen
import win32gui import win32api import win32con import mouse import keyboard
sct = mss.mss() Wd, Hd = sct.monitors[1]["width"], sct.monitors[1]["height"] SendInput = ctypes.windll.user32.SendInput PUL = ctypes.POINTER(ctypes.c_ulong)
class KeyBdInput(ctypes.Structure): fields = [("wVk", ctypes.c_ushort), ("wScan", ctypes.c_ushort), ("dwFlags", ctypes.c_ulong), ("time", ctypes.c_ulong), ("dwExtraInfo", PUL)]
class HardwareInput(ctypes.Structure): fields = [("uMsg", ctypes.c_ulong), ("wParamL", ctypes.c_short), ("wParamH", ctypes.c_ushort)]
class MouseInput(ctypes.Structure): fields = [("dx", ctypes.c_long), ("dy", ctypes.c_long), ("mouseData", ctypes.c_ulong), ("dwFlags", ctypes.c_ulong), ("time", ctypes.c_ulong), ("dwExtraInfo", PUL)]
class Input_I(ctypes.Union): fields = [("ki", KeyBdInput), ("mi", MouseInput), ("hi", HardwareInput)]
class Input(ctypes.Structure): fields = [("type", ctypes.c_ulong), ("ii", Input_I)]
def set_pos(x, y): if keyboard.is_pressed('alt'): x = int(x - (Wd / 2)) y = int(y - (Hd / 2))
extra = ctypes.c_ulong(0) ii = pynput._util.win32.INPUT_union() ii.mi = pynput._util.win32.MOUSEINPUT(x, y, 0, (0x0001 | 0x8000), 0, ctypes.cast(ctypes.pointer(extra), ctypes.c_void_p)) command = pynput._util.win32.INPUT(ctypes.c_ulong(0), ii) SendInput(1, ctypes.pointer(command), ctypes.sizeof(command)) - Assistant
The error you're encountering is caused by attempting to pass a float to a parameter that expects an integer. Specifically, this occurs in the
set_posfunction when creating an instance ofpynput._util.win32.MOUSEINPUT.The variables
mouseXandmouseYare of type float because of the division operations in the code:mouseX = origbox[0] + (x + w / 2) mouseY = origbox[1] + (y + h * 0.15)To fix this, you need to cast
mouseXandmouseYto integers before passing them topynput._util.win32.MOUSEINPUT. Here's the correctedset_posfunction:def set_pos(x, y): if keyboard.is_pressed('alt'): x = int(x - (Wd / 2)) y = int(y - (Hd / 2)) extra = ctypes.c_ulong(0) ii = pynput._util.win32.INPUT_union() ii.mi = pynput._util.win32.MOUSEINPUT(int(x), int(y), 0, (0x0001 | 0x8000), 0, ctypes.cast(ctypes.pointer(extra), ctypes.c_void_p)) command = pynput._util.win32.INPUT(ctypes.c_ulong(0), ii) SendInput(1, ctypes.pointer(command), ctypes.sizeof(command))