Skip to content

Commit 7832b0b

Browse files
2.2.1.1 - You can now add Batch Scripts, PowerShell Scripts, and any type of file for an Editor. Also removed the "Show system tray icon" option.
1 parent eefa7d3 commit 7832b0b

File tree

6 files changed

+20
-57
lines changed

6 files changed

+20
-57
lines changed

FormMain.Designer.cs

Lines changed: 11 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FormMain.cs

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,8 @@ private void LoadSettings()
292292
checkBoxInitialScreenshot.Checked = Convert.ToBoolean(Settings.User.GetByKey("BoolTakeInitialScreenshot", defaultValue: false).Value);
293293
Log.Write("BoolTakeInitialScreenshot = " + checkBoxInitialScreenshot.Checked);
294294

295-
toolStripMenuItemShowSystemTrayIcon.Checked = Convert.ToBoolean(Settings.User.GetByKey("BoolShowSystemTrayIcon", defaultValue: true).Value);
296-
Log.Write("BoolShowSystemTrayIcon = " + toolStripMenuItemShowSystemTrayIcon.Checked);
297-
295+
notifyIcon.Visible = Convert.ToBoolean(Settings.User.GetByKey("BoolShowSystemTrayIcon", defaultValue: true).Value);
296+
Log.Write("BoolShowSystemTrayIcon = " + notifyIcon.Visible);
298297
checkBoxScheduleStopAt.Checked = Convert.ToBoolean(Settings.User.GetByKey("BoolCaptureStopAt", defaultValue: false).Value);
299298
Log.Write("BoolCaptureStopAt = " + checkBoxScheduleStopAt.Checked);
300299

@@ -564,7 +563,6 @@ private void SaveSettings()
564563
Settings.User.GetByKey("IntCaptureLimit", defaultValue: 0).Value = numericUpDownCaptureLimit.Value;
565564
Settings.User.GetByKey("BoolCaptureLimit", defaultValue: false).Value = checkBoxCaptureLimit.Checked;
566565
Settings.User.GetByKey("BoolTakeInitialScreenshot", defaultValue: false).Value = checkBoxInitialScreenshot.Checked;
567-
Settings.User.GetByKey("BoolShowSystemTrayIcon", defaultValue: true).Value = toolStripMenuItemShowSystemTrayIcon.Checked;
568566
Settings.User.GetByKey("BoolCaptureStopAt", defaultValue: false).Value = checkBoxScheduleStopAt.Checked;
569567
Settings.User.GetByKey("BoolCaptureStartAt", defaultValue: false).Value = checkBoxScheduleStartAt.Checked;
570568
Settings.User.GetByKey("BoolCaptureOnSunday", defaultValue: false).Value = checkBoxSunday.Checked;
@@ -1246,8 +1244,6 @@ private void ParseCommandLineArguments(string[] args)
12461244
checkBoxScheduleStartAt.Checked = false;
12471245
checkBoxScheduleOnTheseDays.Checked = false;
12481246

1249-
toolStripMenuItemShowSystemTrayIcon.Checked = true;
1250-
12511247
#endregion Default Values for Command Line Arguments
12521248

12531249
#region Command Line Argument Parsing
@@ -1387,7 +1383,7 @@ private void ParseCommandLineArguments(string[] args)
13871383

13881384
if (Regex.IsMatch(arg, REGEX_COMMAND_LINE_HIDE_SYSTEM_TRAY_ICON))
13891385
{
1390-
toolStripMenuItemShowSystemTrayIcon.Checked = false;
1386+
notifyIcon.Visible = false;
13911387
}
13921388
}
13931389

@@ -2715,16 +2711,6 @@ private void Tick_timerScheduledCaptureStop(object sender, EventArgs e)
27152711
}
27162712
}
27172713

2718-
/// <summary>
2719-
/// Show or hide the system tray icon depending on the option selected.
2720-
/// </summary>
2721-
/// <param name="sender"></param>
2722-
/// <param name="e"></param>
2723-
private void CheckedChanged_toolStripMenuItemShowSystemTrayIcon(object sender, EventArgs e)
2724-
{
2725-
notifyIcon.Visible = toolStripMenuItemShowSystemTrayIcon.Checked;
2726-
}
2727-
27282714
/// <summary>
27292715
/// Determines when we enable the "Set" button for passphrase.
27302716
/// </summary>

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.2.1.0")]
36-
[assembly: AssemblyFileVersion("2.2.1.0")]
35+
[assembly: AssemblyVersion("2.2.1.1")]
36+
[assembly: AssemblyFileVersion("2.2.1.1")]
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.2.1.0"/>
6+
version="2.2.1.1"/>
77
<asmv3:application>
88
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
99
<dpiAware>True/PM</dpiAware>

modules/editors/FormEditor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ private void Click_buttonChooseEditor(object sender, EventArgs e)
215215
AddExtension = false,
216216
CheckFileExists = true,
217217
CheckPathExists = true,
218-
Filter = "Applications (*.exe)|*.exe"
218+
Filter = "Applications (*.exe)|*.exe|Batch Scripts (*.bat)|*.bat|PowerShell Scripts (*.ps1)|*.ps1|All Files (*.*)|*.*"
219219
};
220220

221221
if (openFileDialog.ShowDialog() == DialogResult.OK)

settings/Settings.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static class Settings
2323
/// <summary>
2424
///
2525
/// </summary>
26-
public static readonly string ApplicationVersion = "2.2.1.0";
26+
public static readonly string ApplicationVersion = "2.2.1.1";
2727

2828
/// <summary>
2929
///
@@ -88,6 +88,7 @@ public static void Initialize()
8888
_versionCollection.Add(new Version(CODENAME_DALEK, "2.2.0.20")); // Tab pages auto scroll
8989
_versionCollection.Add(new Version(CODENAME_DALEK, "2.2.0.21")); // Introduced Configure menu for each Screen and Region
9090
_versionCollection.Add(new Version(CODENAME_DALEK, "2.2.0.22")); // Fixed scheduled start time with -startat command line argument
91+
_versionCollection.Add(new Version(CODENAME_DALEK, "2.2.1.0")); // Introduced autoscreen.conf file and -log, -debug, and -config command line arguments
9192

9293
Application = new SettingCollection
9394
{

0 commit comments

Comments
 (0)