Skip to content

Latest commit

 

History

History
42 lines (38 loc) · 1.93 KB

README.md

File metadata and controls

42 lines (38 loc) · 1.93 KB

AutoShutdown

Auto shutdown the windows 10 device working on dark mode by just one click. The code closes all the program and then shuts the device.

Installation of requred modules

  1. cv2
    Using pip:
pip install opencv-python

       Using conda:

conda install -c conda-forge opencv
  1. pyautogui
    Using pip:
pip install pyautogui

       Using conda:

conda install -c conda-forge pyautogui

Usage

-> First save all your files which are currently unsaved.
-> There are two ways to use this:
    1) If you don't want to run the program from command line again and again, create a .exe file with pyinstaller. Make the icon's         view to Small/List/Details from view>your-choice. Pre-build executable can be downloaded from here Auto-shutdown.exe.
    2) The common method, run the program from any ide. But, remember to make the view of the icon to Small/List/Details from         the above mentioned method.

Possible problems and their solutions

-> An Infinite Loop:
     Reasons:
        -Some files are not saved before the usage of program.
        -Icon view is not set to small/list/details.
     Solution:
        -Just smash the mouse pointer any of the corner of the screen.

Warnings

-Currently works on only dark mode.
-Does not save the work, it has to be done manually before running the program.
-View of the icons should be set to small/list/details.
-Run the program from file manager/ide.