Skip to content

SetWindowRecordingByName

function

Delphi
function SetWindowRecordingByName (WindowName: string; ExactMatch: Boolean): Boolean;
C++Builder
bool __fastcall SetWindowRecordingByName(System::UnicodeString WindowName, bool ExactMatch);
C#
public bool SetWindowRecordingByName(string WindowName, bool ExactMatch);
VB.NET
Public Function SetWindowRecordingByName(WindowName As String, ExactMatch As Boolean) As Boolean
C++/Qt
BOOL SetWindowRecordingByName (wchar_t *WindowName, BOOL ExactMatch);

Specifies a window to record for the screen recording, by its window name or class name. The window name or class name of this window can be picked up by looking at the title bar of the window, or retrieved by invoking EnumerateWindows.

  • it is possible to identify the exact window name by passing the full string to the WindowName parameter and setting ExactMatch = true,

  • it is possible to identify the window by a substring of its name, passed to the WindowName parameter, and by setting ExactMatch = false.

Note: when ExactMatch = false, the WindowName parameter is not case-sensitive.

See the "Recording a window" chapter for more information.