We have found a superior alternative for screen capture and management: BetterCam.
We strongly recommend using BetterCam for your screen capture needs. It offers:
- Significantly faster performance
- NVIDIA GPU acceleration support for extremely efficient screen capture
-
Visit the BetterCam GitHub repository
-
Follow their installation instructions:
pip install bettercam
-
Update your code to use BetterCam. Here's a basic example:
import bettercam # Capture the entire screen image = bettercam.capture() # Save the captured image image.save("screenshot.png")
-
Refer to BetterCam's documentation for more advanced usage and features.
We appreciate your interest in ScreenManager. By archiving this repository, we aim to direct users to the best available tools for screen capture and management.
If you have any questions about this archival or need assistance migrating to BetterCam, please open an issue in the BetterCam repository.
This is a Python utility for capturing screens and managing screen information using the Windows API. The utility provides a way to capture screen data and handle screen information in a multi-screen setup.
- Capture screen data and save it as a BMP image.
- Retrieve information about the display monitors, such as monitor dimensions and positions.
- Identify primary screens.
- Handle multiple screens.
-
Ensure you have Python installed on your system.
-
Clone this repository or copy the provided code.
-
Import the necessary modules in your Python script or interactive session.
from screen_manager import GetScreen, ScreenCapture
- The code provides two main classes: GetScreen and ScreenCapture. The GetScreen class retrieves information about display monitors, while the ScreenCapture class captures screen data.
- To use the GetScreen class, you can create an instance by providing the screen number:
screen_number = 0 # Change this to the desired screen number
screen = GetScreen(screen_number)
print("Display Name:", screen.display_name)
print("Primary Screen:", screen.is_primary_screen)
- To capture screen data using the ScreenCapture class, create an instance and start capturing:
screen_to_capture = GetScreen(0) # Change this to the desired screen number
capture = ScreenCapture(screen_to_capture)
# Wait for data to be captured
captured_data = capture.get_captured_data()
For detailed examples of how to use the utility, refer to the following link: Click her
- This utility is specific to Windows and uses the Windows API to interact with display monitors and capture screen data.
- The code focuses on the functionality of capturing screen data and managing screen information. It does not provide error handling for all possible scenarios.
This code is provided under the MIT License.