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 the window to record for the screen recording, by its window name or class name. The window name or class name can be picked up from the title bar of the window, or retrieved by invoking EnumerateWindows.

  • To identify the window by its exact name, pass the full string to the WindowName parameter and set ExactMatch to true.

  • To identify the window by a substring of its name, pass this substring to the WindowName parameter and set ExactMatch to false.

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

See the Recording a window chapter for more information.