Skip to content

Commit

Permalink
- Multi screen support (use TAB or SPACE to switch between screens)
Browse files Browse the repository at this point in the history
- Corrected selecting to screen corner was not saving screenshot
- Added help menu with keyboard shortcuts
  • Loading branch information
gabsoftware committed Dec 11, 2018
1 parent 9aded21 commit aff886f
Show file tree
Hide file tree
Showing 14 changed files with 383 additions and 177 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,4 @@ $RECYCLE.BIN/

# Mac desktop service store files
.DS_Store
/.vs/GabScreenshot/v15/Server/sqlite3
19 changes: 11 additions & 8 deletions GabScreenshot.sln
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
# Visual Studio 15
VisualStudioVersion = 15.0.28307.106
MinimumVisualStudioVersion = 10.0.40219.1
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "GabScreenshot", "GabScreenshot\GabScreenshot.vbproj", "{D9582665-DAA2-49DD-8D72-E917A2A6BD69}"
ProjectSection(ProjectDependencies) = postProject
{F52AA97E-180A-40ED-8F2B-09080171D6C7} = {F52AA97E-180A-40ED-8F2B-09080171D6C7}
{8F4C1C52-76C8-4018-BC0F-9E6B9C03A827} = {8F4C1C52-76C8-4018-BC0F-9E6B9C03A827}
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GabKeyboardHook", "..\GabKeyboardHook\GabKeyboardHook.csproj", "{F52AA97E-180A-40ED-8F2B-09080171D6C7}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GabKeyboardHook", "..\GabKeyboardHook\GabKeyboardHook.csproj", "{8F4C1C52-76C8-4018-BC0F-9E6B9C03A827}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -20,12 +20,15 @@ Global
{D9582665-DAA2-49DD-8D72-E917A2A6BD69}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D9582665-DAA2-49DD-8D72-E917A2A6BD69}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D9582665-DAA2-49DD-8D72-E917A2A6BD69}.Release|Any CPU.Build.0 = Release|Any CPU
{F52AA97E-180A-40ED-8F2B-09080171D6C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F52AA97E-180A-40ED-8F2B-09080171D6C7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F52AA97E-180A-40ED-8F2B-09080171D6C7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F52AA97E-180A-40ED-8F2B-09080171D6C7}.Release|Any CPU.Build.0 = Release|Any CPU
{8F4C1C52-76C8-4018-BC0F-9E6B9C03A827}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8F4C1C52-76C8-4018-BC0F-9E6B9C03A827}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8F4C1C52-76C8-4018-BC0F-9E6B9C03A827}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8F4C1C52-76C8-4018-BC0F-9E6B9C03A827}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C15B8A47-F0FC-4224-952C-05D6EAA8E4D3}
EndGlobalSection
EndGlobal
29 changes: 21 additions & 8 deletions GabScreenshot/FrmMain.Designer.vb

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

59 changes: 36 additions & 23 deletions GabScreenshot/FrmMain.fr.resx
Original file line number Diff line number Diff line change
Expand Up @@ -118,32 +118,15 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="NI.BalloonTipText" xml:space="preserve">
<value>Pressez CTRL + "Impr écran Syst" pour capturer l'écran entier, MAJ + "Impr écran Syst" pour capturer une région, ou ALT + "Impr écran Syst" pour capturer la fenêtre active.</value>
<value>CTRL + "Impr écran Syst" pour capturer l'écran entier

MAJ + "Impr écran Syst" pour sélectionner la zone à capturer (TAB pour changer d'écran, Echap pour annuler)

ALT + "Impr écran Syst" pour capturer la fenêtre active</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="AboutGabScreenshotToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>278, 26</value>
</data>
<data name="AboutGabScreenshotToolStripMenuItem.Text" xml:space="preserve">
<value>&amp;À propos de GabScreenshot...</value>
</data>
<data name="OptionsToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>278, 26</value>
</data>
<data name="OptionsToolStripMenuItem.Text" xml:space="preserve">
<value>&amp;Préférences...</value>
</data>
<data name="ToolStripSeparator2.Size" type="System.Drawing.Size, System.Drawing">
<value>275, 6</value>
</data>
<data name="ExitToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>278, 26</value>
</data>
<data name="ExitToolStripMenuItem.Text" xml:space="preserve">
<value>&amp;Quitter</value>
</data>
<data name="CMS.Size" type="System.Drawing.Size, System.Drawing">
<value>279, 88</value>
<value>230, 104</value>
</data>
<data name="NI.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
Expand Down Expand Up @@ -524,4 +507,34 @@
uP8AAMD/AACp/wAA2P8AANj/AACq/wAAxP8AAOH/AAD3/wAAkP+AAOz//ADs/w==
</value>
</data>
<data name="AboutGabScreenshotToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>229, 22</value>
</data>
<data name="AboutGabScreenshotToolStripMenuItem.Text" xml:space="preserve">
<value>&amp;À propos de GabScreenshot...</value>
</data>
<data name="OptionsToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>229, 22</value>
</data>
<data name="OptionsToolStripMenuItem.Text" xml:space="preserve">
<value>&amp;Préférences...</value>
</data>
<data name="ToolStripSeparator1.Size" type="System.Drawing.Size, System.Drawing">
<value>226, 6</value>
</data>
<data name="HelpToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>229, 22</value>
</data>
<data name="HelpToolStripMenuItem.Text" xml:space="preserve">
<value>A&amp;ide</value>
</data>
<data name="ToolStripSeparator2.Size" type="System.Drawing.Size, System.Drawing">
<value>226, 6</value>
</data>
<data name="ExitToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>229, 22</value>
</data>
<data name="ExitToolStripMenuItem.Text" xml:space="preserve">
<value>&amp;Quitter</value>
</data>
</root>
103 changes: 61 additions & 42 deletions GabScreenshot/FrmMain.resx
Original file line number Diff line number Diff line change
Expand Up @@ -117,26 +117,10 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="$this.Text" xml:space="preserve">
<value>GabScreenshot</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="$this.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
<data name="&gt;&gt;HelpToolStripMenuItem.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>120, 120</value>
</data>
<data name="NI.Text" xml:space="preserve">
<value>GabScreenshot</value>
</data>
<data name="CMS.Size" type="System.Drawing.Size, System.Drawing">
<value>238, 88</value>
</data>
<data name="&gt;&gt;CMS.Type" xml:space="preserve">
<value>System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="NI.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAYAMDAAAAEACACoDgAAZgAAACAgAAABAAgAqAgAAA4PAAAQEAAAAQAIAGgFAAC2FwAAMDAAAAEA
Expand Down Expand Up @@ -516,48 +500,73 @@
uP8AAMD/AACp/wAA2P8AANj/AACq/wAAxP8AAOH/AAD3/wAAkP+AAOz//ADs/w==
</value>
</data>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>96, 96</value>
</data>
<data name="NI.Text" xml:space="preserve">
<value>GabScreenshot</value>
</data>
<data name="&gt;&gt;NI.Name" xml:space="preserve">
<value>NI</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>GabScreenshot</value>
</data>
<data name="AboutGabScreenshotToolStripMenuItem.Text" xml:space="preserve">
<value>&amp;About GabScreenshot...</value>
</data>
<data name="CMS.Size" type="System.Drawing.Size, System.Drawing">
<value>199, 104</value>
</data>
<data name="&gt;&gt;CMS.Type" xml:space="preserve">
<value>System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="ToolStripSeparator1.Size" type="System.Drawing.Size, System.Drawing">
<value>195, 6</value>
</data>
<data name="&gt;&gt;NI.Type" xml:space="preserve">
<value>System.Windows.Forms.NotifyIcon, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>FrmMain</value>
</data>
<data name="&gt;&gt;ToolStripSeparator2.Name" xml:space="preserve">
<value>ToolStripSeparator2</value>
</data>
<data name="&gt;&gt;ExitToolStripMenuItem.Name" xml:space="preserve">
<value>ExitToolStripMenuItem</value>
</data>
<data name="&gt;&gt;ExitToolStripMenuItem.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>389, 327</value>
<value>311, 262</value>
</data>
<data name="ToolStripSeparator2.Size" type="System.Drawing.Size, System.Drawing">
<value>234, 6</value>
<value>195, 6</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
<value>CenterScreen</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="$this.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
<data name="HelpToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>198, 22</value>
</data>
<data name="HelpToolStripMenuItem.Text" xml:space="preserve">
<value>&amp;Help</value>
</data>
<data name="NI.BalloonTipTitle" xml:space="preserve">
<value>GabScreenshot</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="NI.Visible" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="OptionsToolStripMenuItem.Text" xml:space="preserve">
<value>&amp;Preferences...</value>
</data>
<data name="OptionsToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>237, 26</value>
<value>198, 22</value>
</data>
<data name="&gt;&gt;OptionsToolStripMenuItem.Name" xml:space="preserve">
<value>OptionsToolStripMenuItem</value>
Expand All @@ -568,43 +577,53 @@
<data name="&gt;&gt;AboutGabScreenshotToolStripMenuItem.Name" xml:space="preserve">
<value>AboutGabScreenshotToolStripMenuItem</value>
</data>
<data name="&gt;&gt;NI.Name" xml:space="preserve">
<value>NI</value>
<data name="&gt;&gt;ToolStripSeparator2.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="AboutGabScreenshotToolStripMenuItem.Text" xml:space="preserve">
<value>&amp;About GabScreenshot...</value>
<data name="&gt;&gt;ToolStripSeparator2.Name" xml:space="preserve">
<value>ToolStripSeparator2</value>
</data>
<data name="&gt;&gt;ToolStripSeparator1.Name" xml:space="preserve">
<value>ToolStripSeparator1</value>
</data>
<data name="$this.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>4, 4, 4, 4</value>
<data name="&gt;&gt;HelpToolStripMenuItem.Name" xml:space="preserve">
<value>HelpToolStripMenuItem</value>
</data>
<data name="&gt;&gt;ToolStripSeparator1.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="AboutGabScreenshotToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>237, 26</value>
<value>198, 22</value>
</data>
<data name="NI.BalloonTipText" xml:space="preserve">
<value>Press simultaneously CTRL + PrintScreen to capture the entire screen, SHIFT + PrintScreen to capture a region of the screen, or ALT + PrintScreen to capture the foreground window.</value>
<value>CTRL + PrintScreen to capture entire screen

SHIFT + PrintScreen to select capture area (TAB to select another screen, ESC to cancel)

ALT + PrintScreen to capture the foreground window</value>
</data>
<data name="&gt;&gt;CMS.Name" xml:space="preserve">
<value>CMS</value>
</data>
<data name="ExitToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>237, 26</value>
<value>198, 22</value>
</data>
<data name="&gt;&gt;OptionsToolStripMenuItem.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;AboutGabScreenshotToolStripMenuItem.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;ToolStripSeparator2.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<data name="$this.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="NI.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="CMS.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>80, 17</value>
</metadata>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
<value>75, 17</value>
</metadata>
</root>
Loading

0 comments on commit aff886f

Please sign in to comment.