mirror of
https://github.com/RootKit-Org/AI-Aimbot.git
synced 2025-06-21 02:41:01 +08:00
changed typing for better support
This commit is contained in:
parent
e34f5ec81a
commit
425a3d7f5d
@ -1,13 +1,14 @@
|
|||||||
import pygetwindow
|
import pygetwindow
|
||||||
import time
|
import time
|
||||||
import bettercam
|
import bettercam
|
||||||
|
from typing import Union
|
||||||
|
|
||||||
# Could be do with
|
# Could be do with
|
||||||
# from config import *
|
# from config import *
|
||||||
# But we are writing it out for clarity for new devs
|
# But we are writing it out for clarity for new devs
|
||||||
from config import screenShotHeight, screenShotWidth
|
from config import screenShotHeight, screenShotWidth
|
||||||
|
|
||||||
def gameSelection() -> (bettercam.BetterCam, int, int | None):
|
def gameSelection() -> (bettercam.BetterCam, int, Union[int, None]):
|
||||||
# Selecting the correct game window
|
# Selecting the correct game window
|
||||||
try:
|
try:
|
||||||
videoGameWindows = pygetwindow.getAllWindows()
|
videoGameWindows = pygetwindow.getAllWindows()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user