Skip to content

Commit

Permalink
2.3.1.8 - Region Select implemented for Regions.
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinkendall committed Aug 7, 2020
1 parent a6c74fd commit 61bc05d
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 32 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.7")]
[assembly: AssemblyFileVersion("2.3.1.7")]
[assembly: AssemblyVersion("2.3.1.8")]
[assembly: AssemblyFileVersion("2.3.1.8")]
[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.7"/>
version="2.3.1.8"/>
<asmv3:application>
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
<dpiAware>True/PM</dpiAware>
Expand Down
2 changes: 0 additions & 2 deletions interface/FormAbout.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.7 ("Boombayah")
<value>Auto Screen Capture 2.3.1.8 ("Boombayah")
Developed by Gavin Kendall (2008 - 2020)

https://autoscreen.sourceforge.io/
Expand Down
63 changes: 39 additions & 24 deletions modules/regions/FormRegion.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions modules/regions/FormRegion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ namespace AutoScreenCapture
public partial class FormRegion : Form
{
private FormMacroTagsToolWindow _formMacroTags;
private FormRegionSelectWithMouse _formRegionSelectWithMouse;

/// <summary>
/// A collection of regions.
Expand Down Expand Up @@ -474,5 +475,25 @@ private void FormRegion_FormClosing(object sender, FormClosingEventArgs e)
_formMacroTags.Close();
}
}

private void buttonRegionSelect_Click(object sender, EventArgs e)
{
_formRegionSelectWithMouse = new FormRegionSelectWithMouse();
_formRegionSelectWithMouse.MouseSelectionCompleted += _formRegionSelectWithMouse_RegionSelectMouseSelectionCompleted;
_formRegionSelectWithMouse.LoadCanvas(outputMode: 0); // 0 is for acquiring the dimensions and resolution
}

private void _formRegionSelectWithMouse_RegionSelectMouseSelectionCompleted(object sender, EventArgs e)
{
int x = _formRegionSelectWithMouse.outputX + 1;
int y = _formRegionSelectWithMouse.outputY + 1;
int width = _formRegionSelectWithMouse.outputWidth - 2;
int height = _formRegionSelectWithMouse.outputHeight - 2;

numericUpDownX.Value = x;
numericUpDownY.Value = y;
numericUpDownWidth.Value = width;
numericUpDownHeight.Value = height;
}
}
}
7 changes: 5 additions & 2 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-04 (August 4, 2020)
[The information presented here refers to the latest version of the application (which is currently 2.3.1.7)]
Last updated on 2020-08-07 (August 7, 2020)
[The information presented here refers to the latest version of the application (which is currently 2.3.1.8)]
=============================================================================================================


Expand Down Expand Up @@ -244,6 +244,9 @@ The value of the Name field can be retrieved with the %name% macro tag so it cou
as part of the screenshot's filename. Therefore any characters that are invalid to Windows
will be stripped out of the name (such as /, :, *, ?, \, <, >, and |).

The "Region Select" button is used to acquire the X, Y, Width, and Height values by
using a mouse-driven region selection on the screen.

Change the X and Y values in the "Position" section to adjust the region's position.
X = 0 and Y = 0 usually represents the corner of the primary display. You can also use negative
values to adjust the position of the region beyond the boundaries of the available screens.
Expand Down

0 comments on commit 61bc05d

Please sign in to comment.