Screenshot_IrfanView

Saves a screenshot of the entire screen into a file using IrfanView (i_view32.exe)
If file already exists, it will get new name [Ends with (1), (2), etc.]

CodeFunctionName
What is this?

Public

Tested

Original Work
' Command to take screenshot and save it in default folder with i_view32.exe
' D:\ANmar.Systems\Projects.Individual\2019 7Bricks\7Bricks.Publish\Res\i_view32.exe /capture=0 /convert=test.jpg

Sub Screenshot_IrfanView(SaveTo, Optional IVFol = "Resources")
' Take a screenshot of entire screen and save it to a file
' i_view32.exe /capture=0 /convert=test.jpg
' capture values: 0 = whole screen, 1 = current monitor, 2 = foreground window, 3 = foreground window - client area,
' 4 = rectangle selection, 5 = object selected with the mouse, 6 = start in capture mode (can't be combined with other commandline options), 7 = fixed rectangle (using capture dialog values or direct input)
Cmd1 = FixPath(FixPath() & IVFol) & "i_view32.exe"
Cmd2 = " /capture=0 /makecopy /convert=""" & SaveTo & """
Shell Cmd1 & Cmd2
End Sub

SaveTo, Optional IVFol = "Resources"

Views 2,237

Downloads 746

CodeID
DB ID