sskodje / ScreenRecorderLib

A .NET library for screen recording in Windows, using native Microsoft Media Foundation for realtime encoding to h264 video or PNG images.
MIT License
414 stars 94 forks source link

MouseLeftClickDetectionColor at the top left of the screen / MouseClickDetectionDuration only 2 frames #277

Closed linuxakros closed 9 months ago

linuxakros commented 11 months ago

Hello,

I am having a problem with mouse click management (with & without 'run as administrator'). On the recordings, my mouse clicks are displayed at the top left of the screen. image

Code:

MouseOptions = new MouseOptions
{
    //Displays a colored dot under the mouse cursor when the left mouse button is pressed.  
    IsMouseClicksDetected = true,
    MouseLeftClickDetectionColor = "#FFFF00",
    MouseClickDetectionRadius = 30,
    MouseClickDetectionDuration = 100,
    IsMousePointerEnabled = true,
},

Edit: MouseClickDetectionMode = MouseDetectionMode.Hook, Same in normal mode, but like this in Administrator Mode: image

Edit 2; MouseClickDetectionDuration = 2000, Display only 2 frames (left / right click, normal / admin mode)

DLL: 5.4.0/5.3.1/... OS : Windows 11 Home (French) Log: link

Idea: manage and display another color on double click

Review: excellent job!

Regards

sskodje commented 11 months ago

I'm able to replicate the duration issue, but not the position. What resolution and screen scaling do you have?

linuxakros commented 11 months ago

1920x1080 but I just found the source of the bug when I wanted to change the resolution (for test) just now: the HDR (High Dynamic Range) option was active, it works if disabled and dont works if enable.