Skip to content

Commit 5b46a7d

Browse files
committed
2.3.4.6 - Fixed Show/Hide Interface bug so you no longer need to select the option twice to show the interface on initial startup. AutoStartFromCommandLine is temporarily disabled when command line options -stop, -exit, -startat, -stopat, or -captureat are provided.
1 parent 63a939e commit 5b46a7d

File tree

8 files changed

+23
-16
lines changed

8 files changed

+23
-16
lines changed

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("2.3.4.5")]
36-
[assembly: AssemblyFileVersion("2.3.4.5")]
35+
[assembly: AssemblyVersion("2.3.4.6")]
36+
[assembly: AssemblyFileVersion("2.3.4.6")]
3737
[assembly: NeutralResourcesLanguageAttribute("en-CA")]

app.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<assemblyIdentity
44
type="win32"
55
name="GavinKendall.AutoScreenCapture"
6-
version="2.3.4.5"/>
6+
version="2.3.4.6"/>
77
<asmv3:application>
88
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
99
<dpiAware>True/PM</dpiAware>

changelog.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ Auto Screen Capture by Gavin Kendall
44

55

66
Codename "Boombayah"
7+
2.3.4.6 Fixed Show/Hide Interface bug so you no longer need to select the option twice to show the interface on initial startup. AutoStartFromCommandLine is temporarily disabled when command line options -stop, -exit, -startat, -stopat, or -captureat are provided.
78
2.3.4.5 "Keep screenshots for X days" trigger is now inactive by default to avoid potential data loss.
8-
2.3.4.4 Fix to Screen Capture method.
9+
2.3.4.4 Fix to Screen Capture method (again).
910
2.3.4.3 Fix to Screen Capture method.
1011
2.3.4.2 Fix to Screen form for preview image.
1112
2.3.4.1 Does not capture image of screen if screen does not exist.

interface/FormAbout.resx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119
</resheader>
120120
<data name="richTextBoxApplication.Text" xml:space="preserve">
121-
<value>Auto Screen Capture 2.3.4.5 ("Boombayah")
121+
<value>Auto Screen Capture 2.3.4.6 ("Boombayah")
122122
Developed by Gavin Kendall (2008 - 2021)
123123

124124
SourceForge Project Site
@@ -140,8 +140,9 @@ Triggers have been rewritten. I haven't spent much time on the new wizard-style
140140
</data>
141141
<data name="richTextBoxChangelog.Text" xml:space="preserve">
142142
<value>Codename "Boombayah"
143+
2.3.4.6 Fixed Show/Hide Interface bug so you no longer need to select the option twice to show the interface on initial startup. AutoStartFromCommandLine is temporarily disabled when command line options -stop, -exit, -startat, -stopat, or -captureat are provided.
143144
2.3.4.5 "Keep screenshots for X days" trigger is now inactive by default to avoid potential data loss.
144-
2.3.4.4 Fix to Screen Capture method.
145+
2.3.4.4 Fix to Screen Capture method (again).
145146
2.3.4.3 Fix to Screen Capture method.
146147
2.3.4.2 Fix to Screen form for preview image.
147148
2.3.4.1 Does not capture image of screen if screen does not exist.

interface/main/FormMain-CommandLine.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,16 @@ private void ParseCommandLineArguments(string[] args)
304304
// -stop
305305
if (Regex.IsMatch(arg, REGEX_COMMAND_LINE_STOP))
306306
{
307+
_screenCapture.AutoStartFromCommandLine = false;
308+
307309
StopScreenCapture();
308310
}
309311

310312
// -exit
311313
if (Regex.IsMatch(arg, REGEX_COMMAND_LINE_EXIT))
312314
{
315+
_screenCapture.AutoStartFromCommandLine = false;
316+
313317
ExitApplication();
314318
}
315319

@@ -458,6 +462,8 @@ private void ParseCommandLineArguments(string[] args)
458462
// -startat=hh:mm:ss
459463
if (Regex.IsMatch(arg, REGEX_COMMAND_LINE_STARTAT))
460464
{
465+
_screenCapture.AutoStartFromCommandLine = false;
466+
461467
int hours = Convert.ToInt32(Regex.Match(arg, REGEX_COMMAND_LINE_STARTAT).Groups["Hours"].Value);
462468
int minutes = Convert.ToInt32(Regex.Match(arg, REGEX_COMMAND_LINE_STARTAT).Groups["Minutes"].Value);
463469
int seconds = Convert.ToInt32(Regex.Match(arg, REGEX_COMMAND_LINE_STARTAT).Groups["Seconds"].Value);
@@ -480,6 +486,8 @@ private void ParseCommandLineArguments(string[] args)
480486
// -stopat=hh:mm:ss
481487
if (Regex.IsMatch(arg, REGEX_COMMAND_LINE_STOPAT))
482488
{
489+
_screenCapture.AutoStartFromCommandLine = false;
490+
483491
int hours = Convert.ToInt32(Regex.Match(arg, REGEX_COMMAND_LINE_STOPAT).Groups["Hours"].Value);
484492
int minutes = Convert.ToInt32(Regex.Match(arg, REGEX_COMMAND_LINE_STOPAT).Groups["Minutes"].Value);
485493
int seconds = Convert.ToInt32(Regex.Match(arg, REGEX_COMMAND_LINE_STOPAT).Groups["Seconds"].Value);
@@ -502,6 +510,8 @@ private void ParseCommandLineArguments(string[] args)
502510
// -captureat=hh:mm:ss
503511
if (Regex.IsMatch(arg, REGEX_COMMAND_LINE_CAPTUREAT))
504512
{
513+
_screenCapture.AutoStartFromCommandLine = false;
514+
505515
int hours = Convert.ToInt32(Regex.Match(arg, REGEX_COMMAND_LINE_CAPTUREAT).Groups["Hours"].Value);
506516
int minutes = Convert.ToInt32(Regex.Match(arg, REGEX_COMMAND_LINE_CAPTUREAT).Groups["Minutes"].Value);
507517
int seconds = Convert.ToInt32(Regex.Match(arg, REGEX_COMMAND_LINE_CAPTUREAT).Groups["Seconds"].Value);

interface/main/FormMain-SystemTrayIcon.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,7 @@ private void toolStripMenuItemExit_Click(object sender, EventArgs e)
179179

180180
private void NotifyIcon_MouseDoubleClick(object sender, MouseEventArgs e)
181181
{
182-
if (Visible)
183-
{
184-
HideInterface();
185-
}
186-
else
187-
{
188-
ShowInterface();
189-
}
182+
toolStripMenuItemShowHideInterface_Click(sender, e);
190183
}
191184

192185
private void HideSystemTrayIcon()

interface/main/FormMain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ private void DoWork_runDeleteSlidesThread(object sender, DoWorkEventArgs e)
427427
/// <param name="e"></param>
428428
private void toolStripMenuItemShowHideInterface_Click(object sender, EventArgs e)
429429
{
430-
if (Visible)
430+
if (ShowInTaskbar)
431431
{
432432
HideInterface();
433433
}

settings/Settings.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,9 @@ public void Load(FileSystem fileSystem)
222222
_versionCollection.Add(new Version(CODENAME_BOOMBAYAH, "2.3.4.0")); // Screenshots can be sent to a file server either from the main interface window or with a Trigger. The SMTP and SFTP settings are in their own XML files and can be configured. Help system is available but still early in development.
223223
_versionCollection.Add(new Version(CODENAME_BOOMBAYAH, "2.3.4.1")); // Does not capture image of screen if screen does not exist.
224224
_versionCollection.Add(new Version(CODENAME_BOOMBAYAH, "2.3.4.2")); // Fix to Screen form for preview image.
225-
_versionCollection.Add(new Version(CODENAME_BOOMBAYAH, "2.3.4.3")); // Fix to Screen form for preview image.
225+
_versionCollection.Add(new Version(CODENAME_BOOMBAYAH, "2.3.4.3")); // Fix to Screen Capture method.
226+
_versionCollection.Add(new Version(CODENAME_BOOMBAYAH, "2.3.4.4")); // Fix to Screen Capture method (again).
227+
_versionCollection.Add(new Version(CODENAME_BOOMBAYAH, "2.3.4.5")); // "Keep screenshots for X days" trigger is now inactive by default to avoid potential data loss.
226228

227229
Application = new SettingCollection()
228230
{

0 commit comments

Comments
 (0)