AI-Aimbot icon indicating copy to clipboard operation
AI-Aimbot copied to clipboard

I encountered some problems with dxcam when starting the project

Open kerryethu opened this issue 2 years ago • 4 comments

Traceback (most recent call last): File "main.py", line 201, in main() File "main.py", line 72, in main camera = dxcam.create(region=region) File "F:\conda\envs\yolo2\lib\site-packages\dxcam_init_.py", line 110, in create return _factory.create( File "F:\conda\envs\yolo2\lib\site-packages\dxcam_init.py", line 70, in create camera = DXCamera( File "F:\conda\envs\yolo2\lib\site-packages\dxcam\dxcam.py", line 33, in init self._duplicator: Duplicator = Duplicator( File "", line 6, in init File "F:\conda\envs\yolo2\lib\site-packages\dxcam\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)) Exception ignored in: <function DXCamera.del at 0x000001EA142683A0> Traceback (most recent call last): File "F:\conda\envs\yolo2\lib\site-packages\dxcam\dxcam.py", line 243, in del self.release() File "F:\conda\envs\yolo2\lib\site-packages\dxcam\dxcam.py", line 238, in release self.stop() File "F:\conda\envs\yolo2\lib\site-packages\dxcam\dxcam.py", line 138, in stop if self.is_capturing: AttributeError: 'DXCamera' object has no attribute 'is_capturing'

I'm a novice from China, just started learning this project, requesting detailed pointers Thank you very much

kerryethu avatar Aug 30 '22 02:08 kerryethu

I'm in the same situation as you.

Apathy929 avatar Aug 31 '22 13:08 Apathy929

Umm I think the fix for that is just to rerun it acouple times till it works. Ill keep my eye open for the solultion

Qfc9 avatar Sep 03 '22 17:09 Qfc9

I'm in the same situation as you.i try to find solution

blackzhangwei avatar Sep 07 '22 01:09 blackzhangwei

Just click the window you want to capture before it says that, easy fix.

TonttuHomo avatar Sep 09 '22 18:09 TonttuHomo

^Doesnt work

Hyphonic avatar Nov 24 '22 18:11 Hyphonic

Has anyone found a solution? If you did reply here or contact me on Discord - iceeburr#0746. Thanks!

iceeburr avatar Dec 11 '22 09:12 iceeburr

Same problem was solved by this https://github.com/SerpentAI/D3DShot/issues/27

DDGay avatar Feb 08 '23 08:02 DDGay

Another solution is to modify code cam = dxcam.create(device_idx=0, output_idx=0) Change device_idx and output_idx values (0, 1, 2, ...) Your device info can be saw by:

dxcam.device_info()
dxcam.output_info()

AI-M-BOT avatar Apr 07 '23 17:04 AI-M-BOT

Another soloution that may work is making it windowed fullscreen/fullscreen windowed or windows

SKRecreated avatar Apr 11 '23 11:04 SKRecreated

Another solution is to modify code cam = dxcam.create(device_idx=0, output_idx=0) Change device_idx and output_idx values (0, 1, 2, ...) Your device info can be saw by:

dxcam.device_info()
dxcam.output_info()

Does not change anything for me, there is only one Device[0] available.

Alexandros444 avatar Jun 24 '24 21:06 Alexandros444