Skip to content

Commit

Permalink
2.3.2.0 - Region Select Auto Save region is created if the regions.xm…
Browse files Browse the repository at this point in the history
…l file is not found so you can view screenshots taken with Region Select Auto Save.
  • Loading branch information
gavinkendall committed Aug 14, 2020
1 parent 4d251c7 commit 1c8541b
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.3.1.9")]
[assembly: AssemblyFileVersion("2.3.1.9")]
[assembly: AssemblyVersion("2.3.2.0")]
[assembly: AssemblyFileVersion("2.3.2.0")]
[assembly: NeutralResourcesLanguageAttribute("en-CA")]
2 changes: 1 addition & 1 deletion app.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<assemblyIdentity
type="win32"
name="GavinKendall.AutoScreenCapture"
version="2.3.1.9"/>
version="2.3.2.0"/>
<asmv3:application>
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
<dpiAware>True/PM</dpiAware>
Expand Down
2 changes: 1 addition & 1 deletion interface/FormAbout.resx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="richTextBoxDeveloper.Text" xml:space="preserve">
<value>Auto Screen Capture 2.3.1.9 ("Boombayah")
<value>Auto Screen Capture 2.3.2.0 ("Boombayah")
Developed by Gavin Kendall (2008 - 2020)

https://autoscreen.sourceforge.io/
Expand Down
8 changes: 6 additions & 2 deletions macro/MacroParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,14 @@ public static string TimeFormatForWindows
public static readonly string DefaultMacro = @"%date%\%name%\%date%_%time%.%format%";

/// <summary>
/// The default folder and macro used for Region Select / Auto Save.
/// The default folder used for Region Select / Auto Save.
/// </summary>
public static readonly string DefaultAutoSaveFolder = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
public static readonly string DefaultAutoSaveMacro = "Screen Shot %date% at %time%.%format%";

/// <summary>
/// The default macro used for Region Select / Auto Save.
/// </summary>
public static readonly string DefaultAutoSaveMacro = "Screenshot on %date% at %time%.%format%";

/// <summary>
/// Replaces a tag (such as "%year%") with an appropriate value (such as "2020").
Expand Down
25 changes: 24 additions & 1 deletion modules/regions/RegionCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,30 @@ public bool LoadXmlFileAndAddRegions(ImageFormatCollection imageFormatCollection
}
else
{
Log.WriteDebugMessage($"WARNING: Unable to load regions");
Log.WriteDebugMessage("WARNING: Unable to load regions");

Region regionSelectAutoSave = new Region()
{
// Ensures we get an empty GUID of 00000000-0000-0000-0000-000000000000
// since an auto save of a screenshot will also result in an empty GUID
// so, because the GUIDs will match, we can view the auto save screenshot
// from the main interface.
ViewId = new Guid(),
Active = true,
Name = "Region Select / Auto Save",
Folder = MacroParser.DefaultAutoSaveFolder,
Macro = MacroParser.DefaultAutoSaveMacro,
Format = new ImageFormat(ImageFormatSpec.NAME_JPEG, ImageFormatSpec.EXTENSION_JPEG),
JpegQuality = 100,
ResolutionRatio = 100,
Mouse = false,
X = 0,
Y = 0,
Width = 0,
Height = 0
};

Add(regionSelectAutoSave);

SaveToXmlFile();
}
Expand Down
21 changes: 18 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Auto Screen Capture by Gavin Kendall
Last updated on 2020-08-12 (August 12, 2020)
[The information presented here refers to the latest version of the application (which is currently 2.3.1.9)]
Last updated on 2020-08-14 (August 14, 2020)
[The information presented here refers to the latest version of the application (which is currently 2.3.2.0)]
=============================================================================================================


Expand All @@ -12,7 +12,16 @@ Auto Screen Capture is a small and portable screen capture utility for gamers, d
The application enables you to automatically take screenshots at a chosen interval. For example, you may
want to capture the progress of playing through a game's level or track your progress on a long project.

You can also schedule your automated screen capture sessions by specifying when a session starts and
It includes basic region (or area) selection screen capture options from the system tray icon menu
so simply right-clicking on the system tray icon will give you the following options:
Region Select / Clipboard for a region selection and place the screenshot into the clipboard
Region Select / Auto Save for a region selection and save the screenshot on the desktop
Region Select / Edit for a region selection, save the screenshot, and open it in an editor

You may use any application or script as your default editor rather than Microsoft Paint and,
if you happen to have Snagit Editor installed, then the Snagit Editor will be your default editor.

You can schedule your automated screen capture sessions by specifying when a session starts and
when a session stops on particular days of the week.

A calendar is included to help you keep track of what days screenshots were taken.
Expand Down Expand Up @@ -680,6 +689,9 @@ ScreenshotsFile=!autoscreen\screenshots.xml

# References to tags.
TagsFile=!autoscreen\tags.xml

# References to schedules.
SchedulesFile=C:\autoscreen\bin\Debug\!autoscreen\schedules.xml
=======================================================================================================

As you can see the configuration file defines the folders and XML files the application should use.
Expand All @@ -697,6 +709,7 @@ ScreensFile=!autoscreen\screens.xml
TriggersFile=!autoscreen\triggers.xml
ScreenshotsFile=!autoscreen\screenshots.xml
TagsFile=!autoscreen\tags.xml
SchedulesFile=!autoscreen\schedules.xml

All of these values represent local paths for the computer that Auto Screen Capture is running on, but
it's also possible to use network paths instead.
Expand All @@ -711,6 +724,7 @@ screens.xml Setup screens to capture on the user's computer
triggers.xml Setup triggers to control the application's behavior
screenshots.xml List the screenshots that have been captured by the application
tags.xml Setup tags to use in a macro for customizing filenames
schedules.xml Schedules for defining when screen capture sessions start and stop

You can use a network path (rather than a local system path). For example, if you have a server
named "SKYWALKER" and it's accessible by Auto Screen Capture running from a user's computer you
Expand Down Expand Up @@ -744,6 +758,7 @@ ScreensFile=\\SKYWALKER\shared\autoscreen\%machine%\%user%\screens.xml
TriggersFile=\\SKYWALKER\shared\autoscreen\%machine%\%user%\triggers.xml
ScreenshotsFile=\\SKYWALKER\shared\autoscreen\%machine%\%user%\screenshots.xml
TagsFile=\\SKYWALKER\shared\autoscreen\%machine%\%user%\tags.xml
SchedulesFile=\\SKYWALKER\shared\autoscreen\%machine%\%user%\\schedules.xml
=======================================================================================================

You don't need to use "autoscreen.conf" as the name for your configuration file.
Expand Down
3 changes: 2 additions & 1 deletion settings/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ public static void Initialize()
new Version(CODENAME_BOOMBAYAH, "2.3.1.5"), // Region Select / Auto Save implemented.
new Version(CODENAME_BOOMBAYAH, "2.3.1.6"), // Region Select Edit implemented and fixed bug with ViewId for new Screens and Regions.
new Version(CODENAME_BOOMBAYAH, "2.3.1.7"), // OptimizeScreenCapture implemented.
new Version(CODENAME_BOOMBAYAH, "2.3.1.8") // Region Select implemented for Regions.
new Version(CODENAME_BOOMBAYAH, "2.3.1.8"), // Region Select implemented for Regions.
new Version(CODENAME_BOOMBAYAH, "2.3.1.9") // Schedules can now have their own interval set for them separate from the main interval. Also fixed bug with screen capture duration info.
};

Application = new SettingCollection
Expand Down

0 comments on commit 1c8541b

Please sign in to comment.