tried a few things, i still have been getting this error
You can check “videoGameWindow.activate()” on line 38 of the GameSelection.py.
In my tests in cs2, I found this error appeared when minimizing the window or other windows occluding the target window.
![Error](https://github.com/RootKit-Org/AI-Aimbot/assets/92238130/8bec40f7-bb1c-48c7-a5e3-c1a4358a9126)
I got 2 error , so I do not know which is the root reason.
Please enter the number corresponding to the window you'd like to select: 4
Successfully activated the game window...
(800, 380, 1120, 700)
Traceback (most recent call last):
File "C:\Users\xxx\Downloads\AI-Aimbot-main\AI-Aimbot-main\main_tensorrt.py", line 166, in
main()
File "C:\Users\xxx\Downloads\AI-Aimbot-main\AI-Aimbot-main\main_tensorrt.py", line 20, in main
camera, cWidth, cHeight = gameSelection.gameSelection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\Downloads\AI-Aimbot-main\AI-Aimbot-main\gameSelection.py", line 73, in gameSelection
camera = bettercam.create(region=region, output_color="BGRA", max_buffer_len=512)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\python3.11\Lib\site-packages\bettercam_init_.py", line 115, in create
return _factory.create(
^^^^^^^^^^^^^^^^^
File "E:\python3.11\Lib\site-packages\bettercam_init.py", line 72, in create
camera = BetterCam(
^^^^^^^^^^
File "E:\python3.11\Lib\site-packages\bettercam\bettercam.py", line 34, in init
self._duplicator: Duplicator = Duplicator(
^^^^^^^^^^^
File "", line 6, in init
File "E:\python3.11\Lib\site-packages\bettercam\core\duplicator.py", line 19, in post_init
output.output.DuplicateOutput(device.device, ctypes.byref(self.duplicator))
_ctypes.COMError: (-2005270524, '指定的设备接口或功能级别在此系统上不受支持。', (None, None, None, 0, None))
ERROR: (-2005270524, '指定的设备接口或功能级别在此系统上不受支持。', (None, None, None, 0, None))
Ask @Wonder for help in our Discord in the #ai-aimbot channel ONLY: https://discord.gg/rootkitorg
Exception ignored in: <function BetterCam.del at 0x0000020711967CE0>
Traceback (most recent call last):
File "E:\python3.11\Lib\site-packages\bettercam\bettercam.py", line 248, in del
self.release()
File "E:\python3.11\Lib\site-packages\bettercam\bettercam.py", line 243, in release
self.stop()
File "E:\python3.11\Lib\site-packages\bettercam\bettercam.py", line 143, in stop
if self.is_capturing:
^^^^^^^^^^^^^^^^^
AttributeError: 'BetterCam' object has no attribute 'is_capturing'
changing from Fullscreen to Fullscreen Windowed fixed it for me