Skip to content

This Python script captures a screenshot of the program list on a Windows operating system using the pyautogui library

License

Notifications You must be signed in to change notification settings

Cozmeh/ProgramList-Backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Program List Backup

This Python script captures a screenshot of the program list on a Windows operating system using the pyautogui library. It opens the Control Panel's "Programs and Features" window, takes a screenshot, saves it as ProgramList.png, and then closes the window.

Prerequisites

  • Python 3.x
  • pyautogui library

Installation

  1. Install Python from the official website: Python Downloads.
  2. Install the required pyautogui library by running the following command:
pip install pyautogui

Usage

  1. Import the necessary libraries in your Python script:
import pyautogui
import os
from time import sleep
  1. Add the following code snippet to your script:
os.system('control.exe appwiz.cpl')
sleep(2)
im1 = pyautogui.screenshot()
im1.save('ProgramList.png')
pyautogui.hotkey('alt', 'f4')
  1. Run the script, and it will open the "Programs and Features" window, capture a screenshot of the program list, save it as ProgramList.png, and then close the window.

About

This Python script captures a screenshot of the program list on a Windows operating system using the pyautogui library

Topics

Resources

License

Stars

Watchers

Forks

Languages