

- Electron api capture page windows 10#
- Electron api capture page software#
- Electron api capture page code#
This has led to the ability to use JavaScript for a whole lot more than just web applications, and one of which is building desktop applications using Electron.js.Įlectron enables you to create desktop applications with pure JavaScript by providing a runtime with rich native (operating system) APIs.
Electron api capture page code#
JavaScript used to be known as the language for building websites and web applications especially with some of its frameworks such as React, Vue, and Angular but over time (as early as 2009), it became possible for JavaScript to run outside the browser with the emergence of Node.js, an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside a web browser. In this tutorial, Timi Omoyeni explains what you need to keep in mind when building a desktop application with Vue.js using the Vue CLI Plugin Electron Builder. It allows for the development of desktop GUI applications using web technologies.
Electron api capture page software#
Windows Server 2008 R2 Įxt-ms-win-ntuser-window-l1-1-1 (introduced in Windows 8.Electron is an open-source software framework developed and maintained by GitHub. Setting the display affinity to WDA_EXCLUDEFROMCAPTURE on previous version of Windows will behave as if WDA_MONITOR is applied.
Electron api capture page windows 10#
Starting in Windows 10 Version 2004, WDA_EXCLUDEFROMCAPTURE is a supported value. It is important to note that unlike a security feature or an implementation of Digital Rights Management (DRM), there is no guarantee that using SetWindowDisplayAffinity and GetWindowDisplayAffinity, and other necessary functions such as DwmIsCompositionEnabled, will strictly protect windowed content, for example where someone takes a photograph of the screen. However, it works only when the Desktop Window Manager(DWM) is composing the desktop. This feature enables applications to protect their own onscreen window content from being captured or copied through a specific set of public operating system features and APIs. This function and GetWindowDisplayAffinity are designed to support the window content protection feature that is new to Windows 7. To get extended error information, call GetLastError. If the function succeeds, it returns TRUE otherwise, it returns FALSE when, for example, the function call is made on a non top-level window. See remarks about compatibility regarding previous versions of Windows.

One use for this affinity is for windows that show video recording controls, so that the controls are not included in the capture. The window is displayed only on a monitor.Įverywhere else, the window does not appear at all. The window content is displayed only on a monitor.Įverywhere else, the window appears with no content. Imposes no restrictions on where the window can be displayed. This parameter can be one of the following values. The display affinity setting that specifies where the content of the window can be displayed.

The window must belong to the current process.

Syntax BOOL SetWindowDisplayAffinity(Ī handle to the top-level window. Specifies where the content of the window can be displayed.
