Skip to content
/ WinGif Public

Create animated gif files from foreground windows capture or frames saved in individual files.

Notifications You must be signed in to change notification settings

Jandini/WinGif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinGif

build

Create animated gif files from foreground windows capture or frames saved in individual files. Created from Janda.Go powered by AnimatedGif.

Download latest WinGif

Capture active window

Capture only "Chrome" window into %TEMP%/chrome.gif file and save frames as png files in %TEMP%/chrome directory.

wingif capture -s -t Chrome -o %TEMP%/chrome.gif -f %TEMP%/chrome

chrome

Capture and crop active window

Crop options allow to adjust capture window are. You and increase or decrease it. Following example show how to capture VirtualBox with and without client menu.

Capture entire VirtualBox window.

wingif capture -s -t " Oracle VM VirtualBox" -o %TEMP%/virtualbox.gif

virtualbox

Capture Virtualbox window with crop to remove menu and status bar. The values were measured for Windows 10.

wingif capture -s -t " Oracle VM VirtualBox" -o %TEMP%/virtualboxcrop.gif --crop-top 89 --crop-bottom -43 --crop-left 1 --crop-right -1

virtualboxcrop

Self capture

The option -l allow to capture WinGif window. By default the WinGif window does not allow to capture itself.

wingif capture -l -s -t wingif.exe -o %TEMP%\wingif.gif -f %TEMP%\wingif

wingif2

Make gif file from frames

Make new gif file from png frames saved earilier in %TEMP%\wingif directory.

wingif make -i %TEMP%\wingif -o %TEMP%\wingif2.gif

image

Capture console application from the script

When you want to capture multiple actions / commands, the entire capture can be scripted. Following example will capture a demo of Janda.Go template. The demo script will run following commands:

dotnet --version
dotnet new install Janda.Go
dotnet new consolego --help
dotnet new consolego -n HelloWorld
cd HelloWorld\src\HelloWorld
dotnet run HelloWorld
cd ..\..\..
dotnet new consolego -n HelloSerilog -us
cd HelloSerilog\src\HelloSerilog
dotnet run HelloSerilog
cd ..\..\..
dotnet new consolego -n HelloAllFeatures -al
cd HelloAllFeatures\src\HelloAllFeatures
dotnet run -- --help
dotnet run 
dotnet run -- go
dotnet run -- go -n HelloDir

Instead of user typing the above commands while WinGif is capturing, all the actions were scripted in JandaGo.cmd batch file.

:: Perform cleanup before capturing the demo. This allows to run this script again and again.
rd HelloSerilog /s /q 2>nul
rd HelloAllFeatures /s /q 2>nul
rd HelloWorld /s /q 2>nul
dotnet new uninstall Janda.Go

set TITLE=Janda.Go Demo
:: Capture only when window with "Janda.Go Demo" title is active. Make sure the WinGif is available in PATH environment.
start WinGif -s -t "%TITLE%" -o .\JandaGo.gif

mode con:cols=120 lines=40

:: Demo starts here
@pause
@cls
@title %TITLE%
dotnet --version

@call :PauseBeforeNext
dotnet new install Janda.Go

@call :PauseBeforeNext
dotnet new consolego --help

@call :PauseBeforeNext
dotnet new consolego -n HelloWorld

@call :PauseBeforeNext
@cd HelloWorld\src\HelloWorld
dotnet run HelloWorld

@call :PauseBeforeNext
@cd ..\..\..
dotnet new consolego -n HelloSerilog -us

@call :PauseBeforeNext
@cd HelloSerilog\src\HelloSerilog
dotnet run HelloSerilog

@call :PauseBeforeNext
@cd ..\..\..
dotnet new consolego -n HelloAllFeatures -al

@call :PauseBeforeNext
@cd HelloAllFeatures\src\HelloAllFeatures
dotnet run -- --help

@call :PauseBeforeNext
dotnet run 

@call :PauseBeforeNext
dotnet run -- go

@call :PauseBeforeNext
dotnet run -- go -n HelloDir

@call :PauseBeforeNext
@cd ..\..\..

:: Changing the window title will stop WinGif capturing.
@title The End
@goto :EOF

:PauseBeforeNext
:: This will simulate user prompt and wait 3 seconds between commands.
@echo.
@echo | set /p="%cd%>"
@timeout /t 3 > nul
@cls
@goto :EOF

This is the result of JandaGo.cmd script.

JandaGo

It could be the feautre of wingif - keyboard type scripts :)

About

Create animated gif files from foreground windows capture or frames saved in individual files.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages