Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
/ ScreenManager Public archive

A Python utility for capturing screen data and retrieving display monitor information using the Windows API. Capture screen content, save it as bitmap images, and gain insights into display monitor properties such as name, position, and size. Ideal for creating screen recording tools, multi-monitor setups, and display analysis.

License

Notifications You must be signed in to change notification settings

Watchdog0x/ScreenManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

ScreenManager (Archived)

⚠️ This repository has been archived and is no longer maintained. ⚠️

Why is this archived?

We have found a superior alternative for screen capture and management: BetterCam.

Recommendation

We strongly recommend using BetterCam for your screen capture needs. It offers:

  • Significantly faster performance
  • NVIDIA GPU acceleration support for extremely efficient screen capture

How to switch to BetterCam

  1. Visit the BetterCam GitHub repository

  2. Follow their installation instructions:

    pip install bettercam
    
  3. 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")
  4. Refer to BetterCam's documentation for more advanced usage and features.

Thank you

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.

Screen Capture Utility in Python

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.

Features

  • 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.

How to Use

  1. Ensure you have Python installed on your system.

  2. Clone this repository or copy the provided code.

  3. Import the necessary modules in your Python script or interactive session.

from screen_manager import GetScreen, ScreenCapture
  1. The code provides two main classes: GetScreen and ScreenCapture. The GetScreen class retrieves information about display monitors, while the ScreenCapture class captures screen data.
  2. 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)
  1. 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()

Examples

For detailed examples of how to use the utility, refer to the following link: Click her

Note

  • 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.

License

This code is provided under the MIT License.

About

A Python utility for capturing screen data and retrieving display monitor information using the Windows API. Capture screen content, save it as bitmap images, and gain insights into display monitor properties such as name, position, and size. Ideal for creating screen recording tools, multi-monitor setups, and display analysis.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages