Skip to content
CaptureIT can generate GIFs of both the actively selected window or your entire desktop
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CaptureIT
Tests
docs
.gitbook.yaml
.gitignore
CHANGELOG.md
LICENSE.md
README.md
appveyor.yml
build.ps1
docs.ps1
install.ps1

README.md

CaptureIT

Build status

A PowerShell Module to generate GIFs

CaptureIT can generate GIFs of both:

  • The actively selected window
  • The entire screen

Synopsis

A PowerShell Module to generate GIFs of the actively selected window or your entire desktop screen.

Description

This module takes screenshots of the actively selected window or your entire desktop screen, and generates GIFs from these images.

Using CaptureIT

To use this module, you will first need to download/clone the repository and import the module:

Import-Module .\CaptureIT.psm1

Once you have imported the module you can use the main wrapper funtion Start-Capture to capture you entire desktop screen. Additionally, you will need to specify the FilePath of your generated GIF.

Start-Capture -Screen -FilePath "c:\users\msadministrator\Desktop\mynewgif.gif"

If you would like to capture the active window, you will need to specify the switch for ActiveWindow:

Start-Capture -ActiveWindow -FilePath "c:\users\msadministrator\Desktop\mynewgif.gif"

To stop capturing, you need to press x in the running console. If you do not, it will continually repeat back to you the key you entered until you press x.

Press the 'x' key to stop capturing.
You pressed the A key.
Press the 'x' key to stop capturing.
You pressed the H key.
Press the 'x' key to stop capturing.
You pressed the D key.
Press the 'x' key to stop capturing.
You pressed the X key.

Notes

   Name: CaptureIT
   Created by: Josh Rickard (MSAdministrator)
   Created Date: 07/07/2018

Some of this code was borrowed from Boe Prox's Take-Screenshot PowerShell Function.

TODO

There are a few issues still that need to be worked out:

  • Find a better way to handle keyboard exiting
  • Refactor to prompt a user to stop capturing and generate GIF
  • Add keyboard exiting logic to the ActiveWindow function
  • Plus, i'm sure more!
You can’t perform that action at this time.