mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-29 17:02:05 +13:00
Added borderless window tool because otherwise I couldn't screen capture Minecraft
This commit is contained in:
parent
c7c4b0807a
commit
1ef9af5bdc
16 changed files with 1096 additions and 599 deletions
|
@ -27,6 +27,14 @@ namespace ShareX.HelpersLib
|
|||
{
|
||||
public static class NativeConstants
|
||||
{
|
||||
public const int GWL_WNDPROC = -4;
|
||||
public const int GWL_HINSTANCE = -6;
|
||||
public const int GWL_HWNDPARENT = -8;
|
||||
public const int GWL_STYLE = -16;
|
||||
public const int GWL_EXSTYLE = -20;
|
||||
public const int GWL_USERDATA = -21;
|
||||
public const int GWL_ID = -12;
|
||||
|
||||
public const int GCL_HICONSM = -34;
|
||||
public const int GCL_HICON = -14;
|
||||
public const int ICON_SMALL = 0;
|
||||
|
@ -35,7 +43,6 @@ public static class NativeConstants
|
|||
public const int SC_MINIMIZE = 0xF020;
|
||||
public const int HT_CAPTION = 2;
|
||||
public const int CURSOR_SHOWING = 1;
|
||||
public const int GWL_STYLE = -16;
|
||||
public const int DWM_TNP_RECTDESTINATION = 0x1;
|
||||
public const int DWM_TNP_RECTSOURCE = 0x2;
|
||||
public const int DWM_TNP_OPACITY = 0x4;
|
||||
|
|
|
@ -159,8 +159,17 @@ public static partial class NativeMethods
|
|||
[DllImport("user32.dll")]
|
||||
public static extern IntPtr GetWindowDC(IntPtr hWnd);
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
public static extern ulong GetWindowLong(IntPtr hWnd, int nIndex);
|
||||
[DllImport("user32.dll", CharSet = CharSet.Auto, EntryPoint = "GetWindowLong")]
|
||||
public static extern IntPtr GetWindowLong32(IntPtr hWnd, int nIndex);
|
||||
|
||||
[DllImport("user32.dll", CharSet = CharSet.Auto, EntryPoint = "GetWindowLongPtr")]
|
||||
public static extern IntPtr GetWindowLongPtr64(IntPtr hWnd, int nIndex);
|
||||
|
||||
[DllImport("user32.dll", CharSet = CharSet.Auto, EntryPoint = "SetWindowLong")]
|
||||
public static extern IntPtr SetWindowLongPtr32(IntPtr hWnd, int nIndex, IntPtr dwNewLong);
|
||||
|
||||
[DllImport("user32.dll", CharSet = CharSet.Auto, EntryPoint = "SetWindowLongPtr")]
|
||||
public static extern IntPtr SetWindowLongPtr64(IntPtr hWnd, int nIndex, IntPtr dwNewLong);
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
[return: MarshalAs(UnmanagedType.Bool)]
|
||||
|
|
|
@ -125,6 +125,26 @@ public static IntPtr GetClassLongPtrSafe(IntPtr hWnd, int nIndex)
|
|||
return new IntPtr(GetClassLong(hWnd, nIndex));
|
||||
}
|
||||
|
||||
public static IntPtr GetWindowLong(IntPtr hWnd, int nIndex)
|
||||
{
|
||||
if (IntPtr.Size == 4)
|
||||
{
|
||||
return GetWindowLong32(hWnd, nIndex);
|
||||
}
|
||||
|
||||
return GetWindowLongPtr64(hWnd, nIndex);
|
||||
}
|
||||
|
||||
public static IntPtr SetWindowLong(IntPtr hWnd, int nIndex, IntPtr dwNewLong)
|
||||
{
|
||||
if (IntPtr.Size == 4)
|
||||
{
|
||||
return SetWindowLongPtr32(hWnd, nIndex, dwNewLong);
|
||||
}
|
||||
|
||||
return SetWindowLongPtr64(hWnd, nIndex, dwNewLong);
|
||||
}
|
||||
|
||||
private static Icon GetSmallApplicationIcon(IntPtr handle)
|
||||
{
|
||||
SendMessageTimeout(handle, (int)WindowsMessages.GETICON, NativeConstants.ICON_SMALL2, 0, SendMessageTimeoutFlags.SMTO_ABORTIFHUNG, 1000, out IntPtr iconHandle);
|
||||
|
|
|
@ -80,7 +80,29 @@ public int ProcessId
|
|||
|
||||
public Rectangle ClientRectangle => NativeMethods.GetClientRect(Handle);
|
||||
|
||||
public WindowStyles Styles => (WindowStyles)NativeMethods.GetWindowLong(Handle, NativeConstants.GWL_STYLE);
|
||||
public WindowStyles Style
|
||||
{
|
||||
get
|
||||
{
|
||||
return (WindowStyles)(ulong)NativeMethods.GetWindowLong(Handle, NativeConstants.GWL_STYLE);
|
||||
}
|
||||
set
|
||||
{
|
||||
NativeMethods.SetWindowLong(Handle, NativeConstants.GWL_STYLE, (IntPtr)value);
|
||||
}
|
||||
}
|
||||
|
||||
public WindowStyles ExStyle
|
||||
{
|
||||
get
|
||||
{
|
||||
return (WindowStyles)(ulong)NativeMethods.GetWindowLong(Handle, NativeConstants.GWL_EXSTYLE);
|
||||
}
|
||||
set
|
||||
{
|
||||
NativeMethods.SetWindowLong(Handle, NativeConstants.GWL_EXSTYLE, (IntPtr)value);
|
||||
}
|
||||
}
|
||||
|
||||
public Icon Icon => NativeMethods.GetApplicationIcon(Handle);
|
||||
|
||||
|
@ -115,6 +137,21 @@ public void Restore()
|
|||
}
|
||||
}
|
||||
|
||||
public void SetWindowPos(SetWindowPosFlags flags)
|
||||
{
|
||||
SetWindowPos(0, 0, 0, 0, flags);
|
||||
}
|
||||
|
||||
public void SetWindowPos(Rectangle rect, SetWindowPosFlags flags)
|
||||
{
|
||||
SetWindowPos(rect.X, rect.Y, rect.Width, rect.Height, flags);
|
||||
}
|
||||
|
||||
public void SetWindowPos(int x, int y, int width, int height, SetWindowPosFlags flags)
|
||||
{
|
||||
NativeMethods.SetWindowPos(Handle, IntPtr.Zero, x, y, width, height, flags);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Text;
|
||||
|
|
91
ShareX/Forms/BorderlessWindowForm.Designer.cs
generated
Normal file
91
ShareX/Forms/BorderlessWindowForm.Designer.cs
generated
Normal file
|
@ -0,0 +1,91 @@
|
|||
|
||||
namespace ShareX
|
||||
{
|
||||
partial class BorderlessWindowForm
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.lblWindowTitle = new System.Windows.Forms.Label();
|
||||
this.txtWindowTitle = new System.Windows.Forms.TextBox();
|
||||
this.btnMakeWindowBorderless = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// lblWindowTitle
|
||||
//
|
||||
this.lblWindowTitle.AutoSize = true;
|
||||
this.lblWindowTitle.Location = new System.Drawing.Point(13, 16);
|
||||
this.lblWindowTitle.Name = "lblWindowTitle";
|
||||
this.lblWindowTitle.Size = new System.Drawing.Size(68, 13);
|
||||
this.lblWindowTitle.TabIndex = 0;
|
||||
this.lblWindowTitle.Text = "Window title:";
|
||||
//
|
||||
// txtWindowTitle
|
||||
//
|
||||
this.txtWindowTitle.Location = new System.Drawing.Point(16, 32);
|
||||
this.txtWindowTitle.Name = "txtWindowTitle";
|
||||
this.txtWindowTitle.Size = new System.Drawing.Size(264, 20);
|
||||
this.txtWindowTitle.TabIndex = 1;
|
||||
this.txtWindowTitle.TextChanged += new System.EventHandler(this.txtWindowTitle_TextChanged);
|
||||
//
|
||||
// btnMakeWindowBorderless
|
||||
//
|
||||
this.btnMakeWindowBorderless.Enabled = false;
|
||||
this.btnMakeWindowBorderless.Location = new System.Drawing.Point(16, 56);
|
||||
this.btnMakeWindowBorderless.Name = "btnMakeWindowBorderless";
|
||||
this.btnMakeWindowBorderless.Size = new System.Drawing.Size(264, 32);
|
||||
this.btnMakeWindowBorderless.TabIndex = 2;
|
||||
this.btnMakeWindowBorderless.Text = "Make window borderless";
|
||||
this.btnMakeWindowBorderless.UseVisualStyleBackColor = true;
|
||||
this.btnMakeWindowBorderless.Click += new System.EventHandler(this.btnMakeWindowBorderless_Click);
|
||||
//
|
||||
// BorderlessWindowForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
||||
this.ClientSize = new System.Drawing.Size(297, 104);
|
||||
this.Controls.Add(this.btnMakeWindowBorderless);
|
||||
this.Controls.Add(this.txtWindowTitle);
|
||||
this.Controls.Add(this.lblWindowTitle);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "BorderlessWindowForm";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "ShareX - Borderless window";
|
||||
this.Shown += new System.EventHandler(this.BorderlessWindowForm_Shown);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label lblWindowTitle;
|
||||
private System.Windows.Forms.TextBox txtWindowTitle;
|
||||
private System.Windows.Forms.Button btnMakeWindowBorderless;
|
||||
}
|
||||
}
|
128
ShareX/Forms/BorderlessWindowForm.cs
Normal file
128
ShareX/Forms/BorderlessWindowForm.cs
Normal file
|
@ -0,0 +1,128 @@
|
|||
#region License Information (GPL v3)
|
||||
|
||||
/*
|
||||
ShareX - A program that allows you to take screenshots and share any file type
|
||||
Copyright (c) 2007-2021 ShareX Team
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
Optionally you can also view the license at <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#endregion License Information (GPL v3)
|
||||
|
||||
using ShareX.HelpersLib;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace ShareX
|
||||
{
|
||||
public partial class BorderlessWindowForm : Form
|
||||
{
|
||||
public string DefaultWindowTitle { get; set; } = "minecraft";
|
||||
|
||||
public BorderlessWindowForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
ShareXResources.ApplyTheme(this);
|
||||
}
|
||||
|
||||
private void MakeWindowBorderless(string title)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(title))
|
||||
{
|
||||
IntPtr hWnd = SearchWindow(title);
|
||||
|
||||
if (hWnd == IntPtr.Zero)
|
||||
{
|
||||
// TODO: Translate
|
||||
MessageBox.Show("Unable to find a window with specified window title.", "ShareX", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
return;
|
||||
}
|
||||
|
||||
WindowInfo windowInfo = new WindowInfo(hWnd);
|
||||
|
||||
if (windowInfo.IsMinimized)
|
||||
{
|
||||
windowInfo.Restore();
|
||||
}
|
||||
|
||||
WindowStyles windowStyle = windowInfo.Style;
|
||||
windowStyle &= ~(WindowStyles.WS_CAPTION | WindowStyles.WS_THICKFRAME | WindowStyles.WS_MINIMIZEBOX | WindowStyles.WS_MAXIMIZEBOX | WindowStyles.WS_SYSMENU);
|
||||
windowInfo.Style = windowStyle;
|
||||
|
||||
WindowStyles windowExStyle = windowInfo.ExStyle;
|
||||
windowExStyle &= ~(WindowStyles.WS_EX_DLGMODALFRAME | WindowStyles.WS_EX_CLIENTEDGE | WindowStyles.WS_EX_STATICEDGE);
|
||||
windowInfo.ExStyle = windowExStyle;
|
||||
|
||||
Rectangle rect = Screen.FromHandle(hWnd).Bounds;
|
||||
|
||||
SetWindowPosFlags setWindowPosFlag = SetWindowPosFlags.SWP_FRAMECHANGED | SetWindowPosFlags.SWP_NOZORDER | SetWindowPosFlags.SWP_NOOWNERZORDER;
|
||||
|
||||
if (rect.IsEmpty)
|
||||
{
|
||||
setWindowPosFlag |= SetWindowPosFlags.SWP_NOMOVE | SetWindowPosFlags.SWP_NOSIZE;
|
||||
}
|
||||
|
||||
windowInfo.SetWindowPos(rect, setWindowPosFlag);
|
||||
}
|
||||
}
|
||||
|
||||
private IntPtr SearchWindow(string title)
|
||||
{
|
||||
foreach (Process process in Process.GetProcesses())
|
||||
{
|
||||
if (process.MainWindowTitle.Contains(title, StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
return process.MainWindowHandle;
|
||||
}
|
||||
}
|
||||
|
||||
return IntPtr.Zero;
|
||||
}
|
||||
|
||||
#region Form events
|
||||
|
||||
private void BorderlessWindowForm_Shown(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(DefaultWindowTitle))
|
||||
{
|
||||
txtWindowTitle.Text = DefaultWindowTitle;
|
||||
btnMakeWindowBorderless.Focus();
|
||||
}
|
||||
}
|
||||
|
||||
private void txtWindowTitle_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
btnMakeWindowBorderless.Enabled = !string.IsNullOrEmpty(txtWindowTitle.Text);
|
||||
}
|
||||
|
||||
private void btnMakeWindowBorderless_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
MakeWindowBorderless(txtWindowTitle.Text);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.ShowError();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
120
ShareX/Forms/BorderlessWindowForm.resx
Normal file
120
ShareX/Forms/BorderlessWindowForm.resx
Normal file
|
@ -0,0 +1,120 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
|
@ -80,7 +80,7 @@ private void UpdateWindowInfo()
|
|||
AddInfo(Resources.InspectWindow_ProcessIdentifier, SelectedWindow.ProcessId.ToString());
|
||||
AddInfo(Resources.InspectWindow_WindowRectangle, SelectedWindow.Rectangle.ToStringProper());
|
||||
AddInfo(Resources.InspectWindow_ClientRectangle, SelectedWindow.ClientRectangle.ToStringProper());
|
||||
AddInfo(Resources.InspectWindow_WindowStyles, SelectedWindow.Styles.ToString());
|
||||
AddInfo(Resources.InspectWindow_WindowStyles, SelectedWindow.Style.ToString());
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
20
ShareX/Forms/MainForm.Designer.cs
generated
20
ShareX/Forms/MainForm.Designer.cs
generated
|
@ -96,6 +96,7 @@ private void InitializeComponent()
|
|||
this.tsmiInspectWindow = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsmiMonitorTest = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsmiDNSChanger = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsmiBorderlessWindow = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tssMain1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.tsddbAfterCaptureTasks = new System.Windows.Forms.ToolStripDropDownButton();
|
||||
this.tsddbAfterUploadTasks = new System.Windows.Forms.ToolStripDropDownButton();
|
||||
|
@ -305,6 +306,7 @@ private void InitializeComponent()
|
|||
this.ucTaskThumbnailView = new ShareX.TaskThumbnailView();
|
||||
this.ttMain = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.pToolbars = new System.Windows.Forms.Panel();
|
||||
this.tsmiTrayBorderlessWindow = new System.Windows.Forms.ToolStripMenuItem();
|
||||
((System.ComponentModel.ISupportInitialize)(this.scMain)).BeginInit();
|
||||
this.scMain.Panel1.SuspendLayout();
|
||||
this.scMain.Panel2.SuspendLayout();
|
||||
|
@ -707,6 +709,7 @@ private void InitializeComponent()
|
|||
this.tsmiIndexFolder,
|
||||
this.tssTools4,
|
||||
this.tsmiClipboardViewer,
|
||||
this.tsmiBorderlessWindow,
|
||||
this.tsmiInspectWindow,
|
||||
this.tsmiMonitorTest,
|
||||
this.tsmiDNSChanger});
|
||||
|
@ -853,6 +856,13 @@ private void InitializeComponent()
|
|||
resources.ApplyResources(this.tsmiDNSChanger, "tsmiDNSChanger");
|
||||
this.tsmiDNSChanger.Click += new System.EventHandler(this.tsmiDNSChanger_Click);
|
||||
//
|
||||
// tsmiBorderlessWindow
|
||||
//
|
||||
this.tsmiBorderlessWindow.Image = global::ShareX.Properties.Resources.application_resize_full;
|
||||
this.tsmiBorderlessWindow.Name = "tsmiBorderlessWindow";
|
||||
resources.ApplyResources(this.tsmiBorderlessWindow, "tsmiBorderlessWindow");
|
||||
this.tsmiBorderlessWindow.Click += new System.EventHandler(this.tsmiBorderlessWindow_Click);
|
||||
//
|
||||
// tssMain1
|
||||
//
|
||||
this.tssMain1.Margin = new System.Windows.Forms.Padding(0, 3, 0, 6);
|
||||
|
@ -1960,6 +1970,7 @@ private void InitializeComponent()
|
|||
this.tsmiTrayIndexFolder,
|
||||
this.tssTrayTools4,
|
||||
this.tsmiTrayClipboardViewer,
|
||||
this.tsmiTrayBorderlessWindow,
|
||||
this.tsmiTrayInspectWindow,
|
||||
this.tsmiTrayMonitorTest,
|
||||
this.tsmiTrayDNSChanger});
|
||||
|
@ -2417,6 +2428,13 @@ private void InitializeComponent()
|
|||
this.pToolbars.Controls.Add(this.tsMain);
|
||||
this.pToolbars.Name = "pToolbars";
|
||||
//
|
||||
// tsmiTrayBorderlessWindow
|
||||
//
|
||||
this.tsmiTrayBorderlessWindow.Image = global::ShareX.Properties.Resources.application_resize_full;
|
||||
this.tsmiTrayBorderlessWindow.Name = "tsmiTrayBorderlessWindow";
|
||||
resources.ApplyResources(this.tsmiTrayBorderlessWindow, "tsmiTrayBorderlessWindow");
|
||||
this.tsmiTrayBorderlessWindow.Click += new System.EventHandler(this.tsmiBorderlessWindow_Click);
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
this.AllowDrop = true;
|
||||
|
@ -2731,5 +2749,7 @@ private void InitializeComponent()
|
|||
private System.Windows.Forms.ToolStripMenuItem tsmiTrayTwitter;
|
||||
private System.Windows.Forms.ToolStripMenuItem tsmiTrayDiscord;
|
||||
private System.Windows.Forms.ToolStripButton tsbDonate;
|
||||
private System.Windows.Forms.ToolStripMenuItem tsmiBorderlessWindow;
|
||||
private System.Windows.Forms.ToolStripMenuItem tsmiTrayBorderlessWindow;
|
||||
}
|
||||
}
|
|
@ -1824,6 +1824,11 @@ private void tsmiClipboardViewer_Click(object sender, EventArgs e)
|
|||
TaskHelpers.OpenClipboardViewer();
|
||||
}
|
||||
|
||||
private void tsmiBorderlessWindow_Click(object sender, EventArgs e)
|
||||
{
|
||||
TaskHelpers.OpenBorderlessWindow();
|
||||
}
|
||||
|
||||
private void tsmiInspectWindow_Click(object sender, EventArgs e)
|
||||
{
|
||||
TaskHelpers.OpenInspectWindow();
|
||||
|
|
File diff suppressed because it is too large
Load diff
18
ShareX/Properties/Resources.Designer.cs
generated
18
ShareX/Properties/Resources.Designer.cs
generated
|
@ -458,6 +458,16 @@ public static System.Drawing.Bitmap application_monitor {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap application_resize_full {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("application-resize-full", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
|
@ -3117,14 +3127,12 @@ public static string YourAntiVirusSoftwareOrTheControlledFolderAccessFeatureInWi
|
|||
"ShareX", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Your system admin disabled the upload feature..
|
||||
/// </summary>
|
||||
public static string YourSystemAdminDisabledTheUploadFeature
|
||||
{
|
||||
get
|
||||
{
|
||||
public static string YourSystemAdminDisabledTheUploadFeature {
|
||||
get {
|
||||
return ResourceManager.GetString("YourSystemAdminDisabledTheUploadFeature", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -226,6 +226,9 @@
|
|||
<data name="control" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\control.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="heart" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\heart.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="AboutForm_AboutForm_Changelog" xml:space="preserve">
|
||||
<value>Changelog</value>
|
||||
</data>
|
||||
|
@ -258,11 +261,6 @@ Would you like to restart ShareX?</value>
|
|||
<data name="AboutForm_AboutForm_Language_id_ID" xml:space="preserve">
|
||||
<value>Indonesian</value>
|
||||
</data>
|
||||
<data name="ActionsToolbar_Tip" xml:space="preserve">
|
||||
<value>Hold left down to drag
|
||||
Right click to open menu
|
||||
Middle click to close</value>
|
||||
</data>
|
||||
<data name="application_browser" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\application-browser.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
|
@ -278,8 +276,8 @@ Middle click to close</value>
|
|||
<data name="exclamation" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\exclamation.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="TaskSettingsForm_UpdateWindowTitle_Task_settings" xml:space="preserve">
|
||||
<value>Task settings</value>
|
||||
<data name="InspectWindow_ClassName" xml:space="preserve">
|
||||
<value>Class name</value>
|
||||
</data>
|
||||
<data name="MainForm_UpdateMainFormTip_Currently_configured_hotkeys_" xml:space="preserve">
|
||||
<value>Currently configured hotkeys:</value>
|
||||
|
@ -296,6 +294,9 @@ Middle click to close</value>
|
|||
<data name="MainForm_UpdateToggleHotkeyButton_Disable_hotkeys" xml:space="preserve">
|
||||
<value>Disable hotkeys</value>
|
||||
</data>
|
||||
<data name="MainForm_tsmiDeleteSelectedFile_Click_Do_you_really_want_to_delete_this_file_" xml:space="preserve">
|
||||
<value>Do you really want to delete this file?</value>
|
||||
</data>
|
||||
<data name="FFmpeg_Missing" xml:space="preserve">
|
||||
<value>Missing</value>
|
||||
</data>
|
||||
|
@ -311,8 +312,8 @@ Middle click to close</value>
|
|||
<data name="TaskHelpers_OpenQuickScreenColorPicker_Copied_to_clipboard___0_" xml:space="preserve">
|
||||
<value>Copied to clipboard: {0}</value>
|
||||
</data>
|
||||
<data name="network_cloud" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\network-cloud.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="clock" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\clock.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ClipboardContentViewer_ClipboardContentViewer_Load_Clipboard_content__File__Count___0__" xml:space="preserve">
|
||||
<value>Clipboard content: File (Count: {0})</value>
|
||||
|
@ -332,12 +333,6 @@ Middle click to close</value>
|
|||
<data name="monitor" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\monitor.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="FileExistForm_txtNewName_TextChanged_Use_new_name__" xml:space="preserve">
|
||||
<value>Use new name: </value>
|
||||
</data>
|
||||
<data name="clipboard_block" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\clipboard-block.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="UploadTask_DoUploadJob_First_time_upload_warning_text" xml:space="preserve">
|
||||
<value>Are you sure you want to upload this screenshot?
|
||||
Press 'No' to cancel the current upload and disable screenshot auto uploading.</value>
|
||||
|
@ -401,12 +396,18 @@ Would you like to automatically download it?</value>
|
|||
<data name="UploadManager_UploadURL_URL_to_download_from_and_upload" xml:space="preserve">
|
||||
<value>URL to download and upload</value>
|
||||
</data>
|
||||
<data name="ClipboardContentViewer_ClipboardContentViewer_Load_Clipboard_content__Text__Length___0__" xml:space="preserve">
|
||||
<value>Clipboard content: Text (Length: {0})</value>
|
||||
</data>
|
||||
<data name="TaskSettingsForm_txtNameFormatPatternActiveWindow_TextChanged_Preview_" xml:space="preserve">
|
||||
<value>Preview:</value>
|
||||
</data>
|
||||
<data name="Rectangle" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Rectangle.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="InspectWindow_ProcessFileName" xml:space="preserve">
|
||||
<value>Process file name</value>
|
||||
</data>
|
||||
<data name="layout_select_content" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\layout-select-content.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
|
@ -416,8 +417,8 @@ Would you like to automatically download it?</value>
|
|||
<data name="AutoCaptureForm_UpdateRegion_X___0___Y___1___Width___2___Height___3_" xml:space="preserve">
|
||||
<value>X: {0}, Y: {1}, Width: {2}, Height: {3}</value>
|
||||
</data>
|
||||
<data name="heart" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\heart.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="ApplicationSettingsForm_btnResetSettings_Click_WouldYouLikeToResetShareXSettings" xml:space="preserve">
|
||||
<value>Would you like to reset ShareX settings?</value>
|
||||
</data>
|
||||
<data name="BeforeUploadForm_BeforeUploadForm__0__is_about_to_be_uploaded_to__1___You_may_choose_a_different_destination_" xml:space="preserve">
|
||||
<value>{0} is about to be uploaded to {1}. You may choose a different destination.</value>
|
||||
|
@ -429,9 +430,8 @@ Would you like to automatically download it?</value>
|
|||
|
||||
Please select a different hotkey or quit the conflicting application and reopen ShareX.</value>
|
||||
</data>
|
||||
<data name="DropForm_DrawDropImage_Drop_here" xml:space="preserve">
|
||||
<value>Drop
|
||||
here</value>
|
||||
<data name="TaskSettingsForm_UpdateWindowTitle_Task_settings" xml:space="preserve">
|
||||
<value>Task settings</value>
|
||||
</data>
|
||||
<data name="ApplicationSettingsForm_cbStartWithWindows_DisabledByPolicy_Text" xml:space="preserve">
|
||||
<value>Startup has been disabled by your organization</value>
|
||||
|
@ -452,9 +452,6 @@ Are you sure you want to continue?</value>
|
|||
<data name="application_list" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\application-list.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="TaskSettingsForm_UpdateUploaderMenuNames_URL_shortener___0_" xml:space="preserve">
|
||||
<value>URL shortener: {0}</value>
|
||||
</data>
|
||||
<data name="crown" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\crown.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
|
@ -485,8 +482,8 @@ Are you sure you want to continue?</value>
|
|||
<data name="application_monitor" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\application-monitor.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="camera" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\camera.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="FileExistForm_txtNewName_TextChanged_Use_new_name__" xml:space="preserve">
|
||||
<value>Use new name: </value>
|
||||
</data>
|
||||
<data name="wrench_screwdriver" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\wrench-screwdriver.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
|
@ -512,12 +509,15 @@ Are you sure you want to continue?</value>
|
|||
<data name="ApplicationSettingsForm_cbStartWithWindows_EnabledByPolicy_Text" xml:space="preserve">
|
||||
<value>Startup has been enabled by your organization</value>
|
||||
</data>
|
||||
<data name="clock_select" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\clock-select.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="ApplicationSettingsForm_btnBrowsePersonalFolderPath_Click_Choose_ShareX_personal_folder_path" xml:space="preserve">
|
||||
<value>Choose ShareX personal folder path</value>
|
||||
</data>
|
||||
<data name="WorkerTask_GetInvalidConfigResult__0__configuration_is_invalid_or_missing__Please_check__Destination_settings__window_to_configure_it_" xml:space="preserve">
|
||||
<value>{0} configuration is invalid or missing. Please check "Destination settings" window to configure it.</value>
|
||||
</data>
|
||||
<data name="InspectWindow_ProcessName" xml:space="preserve">
|
||||
<value>Process name</value>
|
||||
</data>
|
||||
<data name="UploadTask_CreateURLShortenerTask_Shorten_URL___0__" xml:space="preserve">
|
||||
<value>Shorten URL ({0})</value>
|
||||
</data>
|
||||
|
@ -560,6 +560,9 @@ Are you sure you want to continue?</value>
|
|||
<data name="MainForm_tsmiTestTextUpload_Click_Text_upload_test" xml:space="preserve">
|
||||
<value>Text upload test</value>
|
||||
</data>
|
||||
<data name="InspectWindow_WindowRectangle" xml:space="preserve">
|
||||
<value>Window rectangle</value>
|
||||
</data>
|
||||
<data name="WouldYouLikeToEnableImageEffects" xml:space="preserve">
|
||||
<value>Would you like to enable image effects?
|
||||
|
||||
|
@ -595,8 +598,8 @@ You can later disable it from "After capture tasks" menu.</value>
|
|||
<data name="disk_rename" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\disk-rename.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="cross" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\cross.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="clipboard_block" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\clipboard-block.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="image_export" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\image-export.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
|
@ -631,6 +634,9 @@ You can later disable it from "After capture tasks" menu.</value>
|
|||
<data name="cn" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\cn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Twitter" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\resources\twitter.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="TaskManager_task_UploadCompleted_ShareX___Task_completed" xml:space="preserve">
|
||||
<value>Task completed</value>
|
||||
</data>
|
||||
|
@ -649,6 +655,9 @@ You can later disable it from "After capture tasks" menu.</value>
|
|||
<data name="AboutForm_AboutForm_Language_hu" xml:space="preserve">
|
||||
<value>Hungarian</value>
|
||||
</data>
|
||||
<data name="Bing" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Bing.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="AboutForm_AboutForm_Language_ja_JP" xml:space="preserve">
|
||||
<value>Japanese</value>
|
||||
</data>
|
||||
|
@ -735,8 +744,8 @@ Would you like to restart ShareX?</value>
|
|||
<data name="folder_stand" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\folder-stand.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ApplicationSettingsForm_btnBrowsePersonalFolderPath_Click_Choose_ShareX_personal_folder_path" xml:space="preserve">
|
||||
<value>Choose ShareX personal folder path</value>
|
||||
<data name="TaskSettingsForm_UpdateUploaderMenuNames_URL_shortener___0_" xml:space="preserve">
|
||||
<value>URL shortener: {0}</value>
|
||||
</data>
|
||||
<data name="pt" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\pt.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
|
@ -777,9 +786,15 @@ Would you like to restart ShareX?</value>
|
|||
<data name="UploadTask_OnUploadCompleted_Done" xml:space="preserve">
|
||||
<value>Done</value>
|
||||
</data>
|
||||
<data name="AboutForm_AboutForm_Contributors" xml:space="preserve">
|
||||
<value>Contributors</value>
|
||||
</data>
|
||||
<data name="traffic_cone" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\traffic-cone.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="InspectWindow_WindowStyles" xml:space="preserve">
|
||||
<value>Window styles</value>
|
||||
</data>
|
||||
<data name="MainForm_UpdateWorkflowsMenu_You_can_add_workflows_from_hotkey_settings___" xml:space="preserve">
|
||||
<value>You can add workflows from hotkey settings...</value>
|
||||
</data>
|
||||
|
@ -792,6 +807,9 @@ Would you like to restart ShareX?</value>
|
|||
<data name="UploadTask_DownloadAndUpload_Downloading" xml:space="preserve">
|
||||
<value>Downloading</value>
|
||||
</data>
|
||||
<data name="network_cloud" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\network-cloud.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="AboutForm_AboutForm_Language_fr" xml:space="preserve">
|
||||
<value>French</value>
|
||||
</data>
|
||||
|
@ -813,6 +831,9 @@ Would you like to restart ShareX?</value>
|
|||
<data name="MainForm_UpdateMenu_Hide_menu" xml:space="preserve">
|
||||
<value>Hide menu</value>
|
||||
</data>
|
||||
<data name="InspectWindow_WindowTitle" xml:space="preserve">
|
||||
<value>Window title</value>
|
||||
</data>
|
||||
<data name="vn" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\vn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
|
@ -825,6 +846,9 @@ Would you like to restart ShareX?</value>
|
|||
<data name="GitHub" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\GitHub.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Discord" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\resources\discord.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="UploadTask_OnUploadCompleted_Stopped" xml:space="preserve">
|
||||
<value>Stopped</value>
|
||||
</data>
|
||||
|
@ -843,6 +867,9 @@ Would you like to restart ShareX?</value>
|
|||
<data name="IntegrationHelpers_UploadWithShareX" xml:space="preserve">
|
||||
<value>Upload with ShareX</value>
|
||||
</data>
|
||||
<data name="clock_select" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\clock-select.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="inbox" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\inbox.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
|
@ -865,17 +892,21 @@ Please run ShareX as administrator to change personal folder path.</value>
|
|||
<data name="disk" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\disk.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="InspectWindow_ProcessIdentifier" xml:space="preserve">
|
||||
<value>Process identifier</value>
|
||||
</data>
|
||||
<data name="uac" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\uac.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="AboutForm_AboutForm_Contributors" xml:space="preserve">
|
||||
<value>Contributors</value>
|
||||
<data name="InspectWindow_WindowHandle" xml:space="preserve">
|
||||
<value>Window handle</value>
|
||||
</data>
|
||||
<data name="AboutForm_AboutForm_Language_it_IT" xml:space="preserve">
|
||||
<value>Italian</value>
|
||||
</data>
|
||||
<data name="MainForm_tsmiDeleteSelectedFile_Click_Do_you_really_want_to_delete_this_file_" xml:space="preserve">
|
||||
<value>Do you really want to delete this file?</value>
|
||||
<data name="DropForm_DrawDropImage_Drop_here" xml:space="preserve">
|
||||
<value>Drop
|
||||
here</value>
|
||||
</data>
|
||||
<data name="nl" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\nl.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
|
@ -892,9 +923,6 @@ Please run ShareX as administrator to change personal folder path.</value>
|
|||
<data name="images_stack" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\images-stack.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ApplicationSettingsForm_btnResetSettings_Click_WouldYouLikeToResetShareXSettings" xml:space="preserve">
|
||||
<value>Would you like to reset ShareX settings?</value>
|
||||
</data>
|
||||
<data name="layout_select_sidebar" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\layout-select-sidebar.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
|
@ -913,6 +941,12 @@ Please run ShareX as administrator to change personal folder path.</value>
|
|||
<data name="color" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\color.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="camera" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\camera.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="InspectWindow_ClientRectangle" xml:space="preserve">
|
||||
<value>Client rectangle</value>
|
||||
</data>
|
||||
<data name="image_saturation" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\image-saturation.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
|
@ -949,9 +983,6 @@ Please run ShareX as administrator to change personal folder path.</value>
|
|||
<data name="upload_cloud" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\upload-cloud.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="clock" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\clock.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="layer__arrow" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\layer--arrow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
|
@ -988,8 +1019,10 @@ Please run ShareX as administrator to change personal folder path.</value>
|
|||
<data name="tick_button" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\tick-button.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ClipboardContentViewer_ClipboardContentViewer_Load_Clipboard_content__Text__Length___0__" xml:space="preserve">
|
||||
<value>Clipboard content: Text (Length: {0})</value>
|
||||
<data name="ActionsToolbar_Tip" xml:space="preserve">
|
||||
<value>Hold left down to drag
|
||||
Right click to open menu
|
||||
Middle click to close</value>
|
||||
</data>
|
||||
<data name="navigation_000_button" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\navigation-000-button.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
|
@ -1006,6 +1039,9 @@ Please run ShareX as administrator to change personal folder path.</value>
|
|||
<data name="drive_upload" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\drive-upload.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="cross" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\cross.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="HotkeyManager_ShowFailedHotkeys_Hotkey_registration_failed" xml:space="preserve">
|
||||
<value>Hotkey registration failed</value>
|
||||
</data>
|
||||
|
@ -1030,6 +1066,9 @@ Please run ShareX as administrator to change personal folder path.</value>
|
|||
<data name="ActionsToolbar_OpenAtShareXStartup" xml:space="preserve">
|
||||
<value>Open at ShareX startup</value>
|
||||
</data>
|
||||
<data name="YourSystemAdminDisabledTheUploadFeature" xml:space="preserve">
|
||||
<value>Your system admin disabled the upload feature.</value>
|
||||
</data>
|
||||
<data name="application_text_image" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\application-text-image.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
|
@ -1061,43 +1100,7 @@ Please run ShareX as administrator to change personal folder path.</value>
|
|||
<data name="TaskCompletedSound" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\TaskCompletedSound.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="Bing" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Bing.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="InspectWindow_WindowHandle" xml:space="preserve">
|
||||
<value>Window handle</value>
|
||||
</data>
|
||||
<data name="InspectWindow_WindowTitle" xml:space="preserve">
|
||||
<value>Window title</value>
|
||||
</data>
|
||||
<data name="InspectWindow_ClassName" xml:space="preserve">
|
||||
<value>Class name</value>
|
||||
</data>
|
||||
<data name="InspectWindow_ProcessName" xml:space="preserve">
|
||||
<value>Process name</value>
|
||||
</data>
|
||||
<data name="InspectWindow_ProcessFileName" xml:space="preserve">
|
||||
<value>Process file name</value>
|
||||
</data>
|
||||
<data name="InspectWindow_ProcessIdentifier" xml:space="preserve">
|
||||
<value>Process identifier</value>
|
||||
</data>
|
||||
<data name="InspectWindow_WindowRectangle" xml:space="preserve">
|
||||
<value>Window rectangle</value>
|
||||
</data>
|
||||
<data name="InspectWindow_ClientRectangle" xml:space="preserve">
|
||||
<value>Client rectangle</value>
|
||||
</data>
|
||||
<data name="InspectWindow_WindowStyles" xml:space="preserve">
|
||||
<value>Window styles</value>
|
||||
</data>
|
||||
<data name="Twitter" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\resources\twitter.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Discord" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\resources\discord.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="YourSystemAdminDisabledTheUploadFeature" xml:space="preserve">
|
||||
<value>Your system admin disabled the upload feature.</value>
|
||||
<data name="application-resize-full" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\application-resize-full.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
BIN
ShareX/Resources/application-resize-full.png
Normal file
BIN
ShareX/Resources/application-resize-full.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 458 B |
|
@ -181,6 +181,12 @@
|
|||
<Compile Include="EasterEggAboutAnimation.cs" />
|
||||
<Compile Include="EasterEggBounce.cs" />
|
||||
<Compile Include="FirefoxManifest.cs" />
|
||||
<Compile Include="Forms\BorderlessWindowForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Forms\BorderlessWindowForm.Designer.cs">
|
||||
<DependentUpon>BorderlessWindowForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Forms\ClipboardUploadForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
|
@ -916,6 +922,9 @@
|
|||
<EmbeddedResource Include="Forms\BeforeUploadForm.zh-TW.resx">
|
||||
<DependentUpon>BeforeUploadForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Forms\BorderlessWindowForm.resx">
|
||||
<DependentUpon>BorderlessWindowForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Forms\ClipboardFormatForm.ja-JP.resx">
|
||||
<DependentUpon>ClipboardFormatForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
@ -1911,6 +1920,9 @@
|
|||
<ItemGroup>
|
||||
<None Include="Resources\Discord.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\application-resize-full.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>
|
||||
|
|
|
@ -807,6 +807,12 @@ public static void OpenVideoThumbnailer(TaskSettings taskSettings = null)
|
|||
thumbnailerForm.Show();
|
||||
}
|
||||
|
||||
public static void OpenBorderlessWindow()
|
||||
{
|
||||
BorderlessWindowForm borderlessWindowForm = new BorderlessWindowForm();
|
||||
borderlessWindowForm.Show();
|
||||
}
|
||||
|
||||
public static void OpenInspectWindow()
|
||||
{
|
||||
InspectWindowForm inspectWindowForm = new InspectWindowForm();
|
||||
|
|
Loading…
Reference in a new issue