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 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
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
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
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
Make new gif file from png frames saved earilier in %TEMP%\wingif
directory.
wingif make -i %TEMP%\wingif -o %TEMP%\wingif2.gif
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.
It could be the feautre of wingif - keyboard type scripts :)