lovettchris / wincam

A fast screen capture library for python on Windows 10 and above (x64 only).
MIT License
20 stars 7 forks source link

error code: {f'{-hr:02x}'} #9

Open pccctoa opened 2 days ago

pccctoa commented 2 days ago

Hi, Thank you for your products. It work perfectly on window 11, python 3.12 But i'm very newbie and when i try example code on window 10 build 10.0.1942 and python 3.12.7, Visual code 1.77.3; i get error: PS C:\Users\Administrator> & C:/Users/Administrator/anaconda3/python.exe "c:/Users/Administrator/from wincam import DXCamera.py" Capture failed -2147467262 Traceback (most recent call last): File "c:\Users\Administrator\from wincam import DXCamera.py", line 5, in frame, timestamp = camera.get_bgr_frame() ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Administrator\anaconda3\Lib\site-packages\wincam\dxcam.py", line 58, in get_bgr_frame raise Exception(f"Failed to start capture, error code {f'{-hr:02x}'}") Exception: Failed to start capture, error code 7fffbffe PS C:\Users\Administrator> i tried with dxcam, it worked.

lovettchris commented 1 day ago

Yes, others have reported problems with Windows 10 also, I should probably just remove that from the list of supported operating systems. I recommend moving to windows 11.