Jump to content

Recommended Posts

Posted (edited)

 

#Include <WinAPIFiles.au3>


_SetDPIUNAWARE('D:\Bureau\ScreenRecorder\ScreenRecorder64.exe')

Func _SetDPIUNAWARE($sFullPath) ; With a dpi scale > 1
;~  Application compatibily flags are stored in the registry (user or system part):
;~  HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
;~  HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
    Local $iRet, $sHklm
    If _WinAPI_GetBinaryType($sFullPath) Then
        Switch @extended
            Case $SCS_32BIT_BINARY
                $sHklm = 'HKLM'
            Case $SCS_64BIT_BINARY
                $sHklm = 'HKLM64'
            Case Else
                Return SetError(-1, 0, 0)
        EndSwitch
        Local $sReg1 = RegRead($sHklm & '\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers', $sFullPath)
        Local $sReg2 = RegRead('HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers', $sFullPath)
        If $sReg1 <> '~ DPIUNAWARE' Or $sReg2 <> '~ DPIUNAWARE' Then
            $iRet = RegWrite($sHklm & '\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers', _
                    $sFullPath, _
                    'REG_SZ', _
                    '~ DPIUNAWARE')
            If @error Or $iRet = 0 Then Return SetError(@error, 0, -2)
            $iRet = RegWrite('HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers', _
                    $sFullPath, _
                    'REG_SZ', _
                    '~ DPIUNAWARE')
            If @error Or $iRet = 0 Then Return SetError(@error, 0, -3)

            Return 1
        EndIf
    EndIf
EndFunc   ;==>_SetDPIUNAWARE

Once script run, i run ScreenRecorder64.exe and now i'm able to read your gui

Edited by wakillon

AutoIt 3.3.18.0 X86 - SciTE 4.4.6.0WIN 11 24H2 X64 - Other Examples Scripts

Posted
4 hours ago, wakillon said:

When i try to enter 30 fps in your gui settings, numbers are not visibles ... 🤔

Well, if the background is light, it can be even harder to read the values in the input fields. But when I open the GUI on a white background, I can still see the numbers fairly well. Maybe it’s because I don’t have a 4K monitor and can’t reproduce your problem.

 

On 4/25/2026 at 10:25 AM, Gianni said:

I recorded for about a minute just by pressing the Start button and without changing any settings, but when I open the file, the media player displays this message: "Cannot open Capture_..._... It's using unsupported encoding settings." (win11 x64)
Am I doing something wrong?

Since desktop recordings can get quite large and are recorded internally in high444 format—which not every video player can play—you can easily use FFMPEG to reduce the size of the AVI file and make it compatible so that even the default Windows tools can play it!

Example in CMD:

ffmpeg.exe -i Capture_20260426_181055.avi -c:v libx265 -crf 32 -pix_fmt yuv420p -preset medium output_small.mp4

 

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Posted (edited)
10 hours ago, UEZ said:

Well, if the background is light, it can be even harder to read the values in the input fields. But when I open the GUI on a white background, I can still see the numbers fairly well. Maybe it’s because I don’t have a 4K monitor and can’t reproduce your problem.

It's incredible !
When i look with my own eyes your gui settings, i don't see any numbers even when placing

the black background of notepad or a white background  behind it


But when i take a screenshot for show you that there is no numbers displayed, the screenshot show well the numbers !!! ☹️

You invented invisible numbers ! 👍

For the suspicious, no, I didn't drink! 😋

Edited by wakillon

AutoIt 3.3.18.0 X86 - SciTE 4.4.6.0WIN 11 24H2 X64 - Other Examples Scripts

Posted (edited)

Ok, you are not drunken. 😉😄

I'm working on fixing the problem. Thanks for testing.

I wonder if others have the same problem...

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Posted

First of all, I am sorry for straying away from the main topic but I am curious...

On 4/13/2026 at 7:45 PM, UEZ said:

The previous version used the GDI API to send frames to the codec

What API are you using to capture frames now?

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Posted
1 hour ago, TheDcoder said:

First of all, I am sorry for straying away from the main topic but I am curious...

What API are you using to capture frames now?

GraphicsCaptureWrapper is a C++ wrapper using WinRT and DX11 to provide the desktop image to the encoder.

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Posted (edited)

@wakillon I changed the Settings GUI to DarkMode. It should work now for you, too.

image-2026-04-27-234729172.png

 

You have to download it again -> ScreenRecorder.7z 

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Posted (edited)

Gui settings, display ok now

So, with settings to ultrafast and 30 FPS

Video quality ok

Playing ok, i mean playing duration = record duration 🫡

Excellent work 👍

Edited by wakillon

AutoIt 3.3.18.0 X86 - SciTE 4.4.6.0WIN 11 24H2 X64 - Other Examples Scripts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...