diff --git a/App.config b/App.config
index 193aecc..c21a7d1 100644
--- a/App.config
+++ b/App.config
@@ -3,4 +3,7 @@
+
+
+
\ No newline at end of file
diff --git a/F Key Sender.csproj b/F Key Sender.csproj
index 912a275..8b66d49 100644
--- a/F Key Sender.csproj
+++ b/F Key Sender.csproj
@@ -111,8 +111,16 @@
prompt
true
+
+
+
+
+
+ app.manifest
+
+
@@ -149,6 +157,7 @@
Resources.resx
True
+
SettingsSingleFileGenerator
Settings.Designer.cs
diff --git a/MainForm.Designer.cs b/MainForm.Designer.cs
index ccb8ea5..ba9dc1e 100644
--- a/MainForm.Designer.cs
+++ b/MainForm.Designer.cs
@@ -59,15 +59,15 @@ private void InitializeComponent()
this.radioButtonSC = new System.Windows.Forms.RadioButton();
this.buttonSendCustomKey = new System.Windows.Forms.Button();
this.labelCustom = new System.Windows.Forms.Label();
- this.checkBoxAlt = new F_Key_Sender.BigCheckBox();
- this.chkAlwaysOnTop = new F_Key_Sender.BigCheckBox();
- this.checkBoxShift = new F_Key_Sender.BigCheckBox();
- this.checkBoxCtrl = new F_Key_Sender.BigCheckBox();
this.panelCustomOutline = new System.Windows.Forms.Panel();
this.buttonCustomInfo = new System.Windows.Forms.Button();
this.radioButtonUnicode = new System.Windows.Forms.RadioButton();
this.labelHexPrefix = new System.Windows.Forms.Label();
this.labelVersion = new System.Windows.Forms.Label();
+ this.checkBoxAlt = new F_Key_Sender.BigCheckBox();
+ this.chkAlwaysOnTop = new F_Key_Sender.BigCheckBox();
+ this.checkBoxShift = new F_Key_Sender.BigCheckBox();
+ this.checkBoxCtrl = new F_Key_Sender.BigCheckBox();
((System.ComponentModel.ISupportInitialize)(this.nudDelay)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nudDuration)).BeginInit();
this.statusStrip1.SuspendLayout();
@@ -78,9 +78,10 @@ private void InitializeComponent()
// btnF13
//
this.btnF13.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.btnF13.Location = new System.Drawing.Point(25, 25);
+ this.btnF13.Location = new System.Drawing.Point(38, 38);
+ this.btnF13.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.btnF13.Name = "btnF13";
- this.btnF13.Size = new System.Drawing.Size(75, 35);
+ this.btnF13.Size = new System.Drawing.Size(112, 54);
this.btnF13.TabIndex = 0;
this.btnF13.Text = "F13";
this.btnF13.UseVisualStyleBackColor = true;
@@ -89,9 +90,10 @@ private void InitializeComponent()
// btnF14
//
this.btnF14.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.btnF14.Location = new System.Drawing.Point(125, 25);
+ this.btnF14.Location = new System.Drawing.Point(188, 38);
+ this.btnF14.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.btnF14.Name = "btnF14";
- this.btnF14.Size = new System.Drawing.Size(75, 35);
+ this.btnF14.Size = new System.Drawing.Size(112, 54);
this.btnF14.TabIndex = 1;
this.btnF14.Text = "F14";
this.btnF14.UseVisualStyleBackColor = true;
@@ -100,9 +102,10 @@ private void InitializeComponent()
// btnF15
//
this.btnF15.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.btnF15.Location = new System.Drawing.Point(225, 25);
+ this.btnF15.Location = new System.Drawing.Point(338, 38);
+ this.btnF15.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.btnF15.Name = "btnF15";
- this.btnF15.Size = new System.Drawing.Size(75, 35);
+ this.btnF15.Size = new System.Drawing.Size(112, 54);
this.btnF15.TabIndex = 2;
this.btnF15.Text = "F15";
this.btnF15.UseVisualStyleBackColor = true;
@@ -111,9 +114,10 @@ private void InitializeComponent()
// btnF16
//
this.btnF16.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.btnF16.Location = new System.Drawing.Point(325, 25);
+ this.btnF16.Location = new System.Drawing.Point(488, 38);
+ this.btnF16.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.btnF16.Name = "btnF16";
- this.btnF16.Size = new System.Drawing.Size(75, 35);
+ this.btnF16.Size = new System.Drawing.Size(112, 54);
this.btnF16.TabIndex = 3;
this.btnF16.Text = "F16";
this.btnF16.UseVisualStyleBackColor = true;
@@ -122,9 +126,10 @@ private void InitializeComponent()
// btnF17
//
this.btnF17.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.btnF17.Location = new System.Drawing.Point(25, 75);
+ this.btnF17.Location = new System.Drawing.Point(38, 115);
+ this.btnF17.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.btnF17.Name = "btnF17";
- this.btnF17.Size = new System.Drawing.Size(75, 35);
+ this.btnF17.Size = new System.Drawing.Size(112, 54);
this.btnF17.TabIndex = 4;
this.btnF17.Text = "F17";
this.btnF17.UseVisualStyleBackColor = true;
@@ -133,9 +138,10 @@ private void InitializeComponent()
// btnF18
//
this.btnF18.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.btnF18.Location = new System.Drawing.Point(125, 75);
+ this.btnF18.Location = new System.Drawing.Point(188, 115);
+ this.btnF18.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.btnF18.Name = "btnF18";
- this.btnF18.Size = new System.Drawing.Size(75, 35);
+ this.btnF18.Size = new System.Drawing.Size(112, 54);
this.btnF18.TabIndex = 5;
this.btnF18.Text = "F18";
this.btnF18.UseVisualStyleBackColor = true;
@@ -144,9 +150,10 @@ private void InitializeComponent()
// btnF19
//
this.btnF19.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.btnF19.Location = new System.Drawing.Point(225, 75);
+ this.btnF19.Location = new System.Drawing.Point(338, 115);
+ this.btnF19.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.btnF19.Name = "btnF19";
- this.btnF19.Size = new System.Drawing.Size(75, 35);
+ this.btnF19.Size = new System.Drawing.Size(112, 54);
this.btnF19.TabIndex = 6;
this.btnF19.Text = "F19";
this.btnF19.UseVisualStyleBackColor = true;
@@ -155,9 +162,10 @@ private void InitializeComponent()
// btnF20
//
this.btnF20.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.btnF20.Location = new System.Drawing.Point(325, 75);
+ this.btnF20.Location = new System.Drawing.Point(488, 115);
+ this.btnF20.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.btnF20.Name = "btnF20";
- this.btnF20.Size = new System.Drawing.Size(75, 35);
+ this.btnF20.Size = new System.Drawing.Size(112, 54);
this.btnF20.TabIndex = 7;
this.btnF20.Text = "F20";
this.btnF20.UseVisualStyleBackColor = true;
@@ -166,9 +174,10 @@ private void InitializeComponent()
// btnF21
//
this.btnF21.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.btnF21.Location = new System.Drawing.Point(25, 125);
+ this.btnF21.Location = new System.Drawing.Point(38, 192);
+ this.btnF21.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.btnF21.Name = "btnF21";
- this.btnF21.Size = new System.Drawing.Size(75, 35);
+ this.btnF21.Size = new System.Drawing.Size(112, 54);
this.btnF21.TabIndex = 8;
this.btnF21.Text = "F21";
this.btnF21.UseVisualStyleBackColor = true;
@@ -177,9 +186,10 @@ private void InitializeComponent()
// btnF22
//
this.btnF22.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.btnF22.Location = new System.Drawing.Point(125, 125);
+ this.btnF22.Location = new System.Drawing.Point(188, 192);
+ this.btnF22.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.btnF22.Name = "btnF22";
- this.btnF22.Size = new System.Drawing.Size(75, 35);
+ this.btnF22.Size = new System.Drawing.Size(112, 54);
this.btnF22.TabIndex = 9;
this.btnF22.Text = "F22";
this.btnF22.UseVisualStyleBackColor = true;
@@ -188,9 +198,10 @@ private void InitializeComponent()
// btnF23
//
this.btnF23.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.btnF23.Location = new System.Drawing.Point(225, 125);
+ this.btnF23.Location = new System.Drawing.Point(338, 192);
+ this.btnF23.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.btnF23.Name = "btnF23";
- this.btnF23.Size = new System.Drawing.Size(75, 35);
+ this.btnF23.Size = new System.Drawing.Size(112, 54);
this.btnF23.TabIndex = 10;
this.btnF23.Text = "F23";
this.btnF23.UseVisualStyleBackColor = true;
@@ -199,9 +210,10 @@ private void InitializeComponent()
// btnF24
//
this.btnF24.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.btnF24.Location = new System.Drawing.Point(325, 125);
+ this.btnF24.Location = new System.Drawing.Point(488, 192);
+ this.btnF24.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.btnF24.Name = "btnF24";
- this.btnF24.Size = new System.Drawing.Size(75, 35);
+ this.btnF24.Size = new System.Drawing.Size(112, 54);
this.btnF24.TabIndex = 11;
this.btnF24.Text = "F24";
this.btnF24.UseVisualStyleBackColor = true;
@@ -210,14 +222,15 @@ private void InitializeComponent()
// nudDelay
//
this.nudDelay.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.nudDelay.Location = new System.Drawing.Point(173, 264);
+ this.nudDelay.Location = new System.Drawing.Point(260, 406);
+ this.nudDelay.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.nudDelay.Maximum = new decimal(new int[] {
10,
0,
0,
0});
this.nudDelay.Name = "nudDelay";
- this.nudDelay.Size = new System.Drawing.Size(62, 26);
+ this.nudDelay.Size = new System.Drawing.Size(93, 35);
this.nudDelay.TabIndex = 14;
this.nudDelay.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.nudDelay.Value = new decimal(new int[] {
@@ -230,9 +243,10 @@ private void InitializeComponent()
//
this.labelDelay.AutoSize = true;
this.labelDelay.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.labelDelay.Location = new System.Drawing.Point(21, 266);
+ this.labelDelay.Location = new System.Drawing.Point(32, 409);
+ this.labelDelay.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelDelay.Name = "labelDelay";
- this.labelDelay.Size = new System.Drawing.Size(130, 20);
+ this.labelDelay.Size = new System.Drawing.Size(197, 29);
this.labelDelay.TabIndex = 15;
this.labelDelay.Text = "Delay (Seconds):";
//
@@ -240,9 +254,10 @@ private void InitializeComponent()
//
this.labelMethod.AutoSize = true;
this.labelMethod.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.labelMethod.Location = new System.Drawing.Point(21, 349);
+ this.labelMethod.Location = new System.Drawing.Point(32, 537);
+ this.labelMethod.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelMethod.Name = "labelMethod";
- this.labelMethod.Size = new System.Drawing.Size(67, 20);
+ this.labelMethod.Size = new System.Drawing.Size(100, 29);
this.labelMethod.TabIndex = 17;
this.labelMethod.Text = "Method:";
//
@@ -254,17 +269,19 @@ private void InitializeComponent()
this.dropdownMethod.Items.AddRange(new object[] {
"SendInput",
"keybd_event"});
- this.dropdownMethod.Location = new System.Drawing.Point(91, 347);
+ this.dropdownMethod.Location = new System.Drawing.Point(136, 534);
+ this.dropdownMethod.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.dropdownMethod.Name = "dropdownMethod";
- this.dropdownMethod.Size = new System.Drawing.Size(108, 26);
+ this.dropdownMethod.Size = new System.Drawing.Size(160, 37);
this.dropdownMethod.TabIndex = 18;
//
// btnTestX
//
this.btnTestX.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.btnTestX.Location = new System.Drawing.Point(0, 3);
+ this.btnTestX.Location = new System.Drawing.Point(0, 5);
+ this.btnTestX.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.btnTestX.Name = "btnTestX";
- this.btnTestX.Size = new System.Drawing.Size(22, 25);
+ this.btnTestX.Size = new System.Drawing.Size(33, 38);
this.btnTestX.TabIndex = 19;
this.btnTestX.Text = "X";
this.btnTestX.UseVisualStyleBackColor = true;
@@ -275,23 +292,25 @@ private void InitializeComponent()
//
this.labelNudDuration.AutoSize = true;
this.labelNudDuration.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.labelNudDuration.Location = new System.Drawing.Point(21, 306);
+ this.labelNudDuration.Location = new System.Drawing.Point(32, 471);
+ this.labelNudDuration.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelNudDuration.Name = "labelNudDuration";
- this.labelNudDuration.Size = new System.Drawing.Size(146, 20);
+ this.labelNudDuration.Size = new System.Drawing.Size(220, 29);
this.labelNudDuration.TabIndex = 21;
this.labelNudDuration.Text = "Hold Duration (ms):";
//
// nudDuration
//
this.nudDuration.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.nudDuration.Location = new System.Drawing.Point(173, 304);
+ this.nudDuration.Location = new System.Drawing.Point(260, 468);
+ this.nudDuration.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.nudDuration.Maximum = new decimal(new int[] {
9999999,
0,
0,
0});
this.nudDuration.Name = "nudDuration";
- this.nudDuration.Size = new System.Drawing.Size(62, 26);
+ this.nudDuration.Size = new System.Drawing.Size(93, 35);
this.nudDuration.TabIndex = 20;
this.nudDuration.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.nudDuration.Value = new decimal(new int[] {
@@ -305,9 +324,10 @@ private void InitializeComponent()
this.statusStrip1.ImageScalingSize = new System.Drawing.Size(24, 24);
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.labelToolstripStatus});
- this.statusStrip1.Location = new System.Drawing.Point(0, 465);
+ this.statusStrip1.Location = new System.Drawing.Point(0, 718);
this.statusStrip1.Name = "statusStrip1";
- this.statusStrip1.Size = new System.Drawing.Size(427, 22);
+ this.statusStrip1.Padding = new System.Windows.Forms.Padding(2, 0, 21, 0);
+ this.statusStrip1.Size = new System.Drawing.Size(640, 31);
this.statusStrip1.SizingGrip = false;
this.statusStrip1.TabIndex = 22;
this.statusStrip1.Text = "statusStrip1";
@@ -316,16 +336,17 @@ private void InitializeComponent()
//
this.labelToolstripStatus.Font = new System.Drawing.Font("Cascadia Mono", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelToolstripStatus.Name = "labelToolstripStatus";
- this.labelToolstripStatus.Size = new System.Drawing.Size(98, 17);
+ this.labelToolstripStatus.Size = new System.Drawing.Size(153, 24);
this.labelToolstripStatus.Text = "Status: Ready";
//
// btnCancel
//
this.btnCancel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnCancel.ForeColor = System.Drawing.Color.Red;
- this.btnCancel.Location = new System.Drawing.Point(7, 424);
+ this.btnCancel.Location = new System.Drawing.Point(10, 652);
+ this.btnCancel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.btnCancel.Name = "btnCancel";
- this.btnCancel.Size = new System.Drawing.Size(90, 30);
+ this.btnCancel.Size = new System.Drawing.Size(135, 46);
this.btnCancel.TabIndex = 23;
this.btnCancel.Text = "Cancel";
this.btnCancel.UseVisualStyleBackColor = true;
@@ -335,7 +356,8 @@ private void InitializeComponent()
// infoKeypressMethod
//
this.infoKeypressMethod.Image = ((System.Drawing.Image)(resources.GetObject("infoKeypressMethod.Image")));
- this.infoKeypressMethod.Location = new System.Drawing.Point(205, 353);
+ this.infoKeypressMethod.Location = new System.Drawing.Point(308, 543);
+ this.infoKeypressMethod.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.infoKeypressMethod.Name = "infoKeypressMethod";
this.infoKeypressMethod.Size = new System.Drawing.Size(16, 16);
this.infoKeypressMethod.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
@@ -346,10 +368,9 @@ private void InitializeComponent()
// textBoxCustomCode
//
this.textBoxCustomCode.Font = new System.Drawing.Font("Consolas", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.textBoxCustomCode.Location = new System.Drawing.Point(30, 96);
- this.textBoxCustomCode.Margin = new System.Windows.Forms.Padding(2);
+ this.textBoxCustomCode.Location = new System.Drawing.Point(45, 148);
this.textBoxCustomCode.Name = "textBoxCustomCode";
- this.textBoxCustomCode.Size = new System.Drawing.Size(75, 26);
+ this.textBoxCustomCode.Size = new System.Drawing.Size(110, 36);
this.textBoxCustomCode.TabIndex = 25;
this.textBoxCustomCode.TextChanged += new System.EventHandler(this.textBoxCustomCode_TextChanged);
//
@@ -357,10 +378,9 @@ private void InitializeComponent()
//
this.radioButtonVK.AutoSize = true;
this.radioButtonVK.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.radioButtonVK.Location = new System.Drawing.Point(26, 33);
- this.radioButtonVK.Margin = new System.Windows.Forms.Padding(2);
+ this.radioButtonVK.Location = new System.Drawing.Point(39, 51);
this.radioButtonVK.Name = "radioButtonVK";
- this.radioButtonVK.Size = new System.Drawing.Size(78, 20);
+ this.radioButtonVK.Size = new System.Drawing.Size(118, 29);
this.radioButtonVK.TabIndex = 26;
this.radioButtonVK.TabStop = true;
this.radioButtonVK.Text = "VK Code";
@@ -371,10 +391,9 @@ private void InitializeComponent()
//
this.radioButtonSC.AutoSize = true;
this.radioButtonSC.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.radioButtonSC.Location = new System.Drawing.Point(26, 53);
- this.radioButtonSC.Margin = new System.Windows.Forms.Padding(2);
+ this.radioButtonSC.Location = new System.Drawing.Point(39, 82);
this.radioButtonSC.Name = "radioButtonSC";
- this.radioButtonSC.Size = new System.Drawing.Size(79, 20);
+ this.radioButtonSC.Size = new System.Drawing.Size(119, 29);
this.radioButtonSC.TabIndex = 27;
this.radioButtonSC.TabStop = true;
this.radioButtonSC.Text = "SC Code";
@@ -384,10 +403,9 @@ private void InitializeComponent()
// buttonSendCustomKey
//
this.buttonSendCustomKey.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F);
- this.buttonSendCustomKey.Location = new System.Drawing.Point(9, 132);
- this.buttonSendCustomKey.Margin = new System.Windows.Forms.Padding(2);
+ this.buttonSendCustomKey.Location = new System.Drawing.Point(14, 203);
this.buttonSendCustomKey.Name = "buttonSendCustomKey";
- this.buttonSendCustomKey.Size = new System.Drawing.Size(117, 27);
+ this.buttonSendCustomKey.Size = new System.Drawing.Size(176, 42);
this.buttonSendCustomKey.TabIndex = 29;
this.buttonSendCustomKey.Text = "Send Custom";
this.buttonSendCustomKey.UseVisualStyleBackColor = true;
@@ -397,61 +415,12 @@ private void InitializeComponent()
//
this.labelCustom.AutoSize = true;
this.labelCustom.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.labelCustom.Location = new System.Drawing.Point(9, 11);
- this.labelCustom.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+ this.labelCustom.Location = new System.Drawing.Point(14, 17);
this.labelCustom.Name = "labelCustom";
- this.labelCustom.Size = new System.Drawing.Size(116, 16);
+ this.labelCustom.Size = new System.Drawing.Size(173, 25);
this.labelCustom.TabIndex = 30;
this.labelCustom.Text = "Use Custom Code";
//
- // checkBoxAlt
- //
- this.checkBoxAlt.CheckboxSize = 40;
- this.checkBoxAlt.Font = new System.Drawing.Font("Arial", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.checkBoxAlt.Location = new System.Drawing.Point(158, 184);
- this.checkBoxAlt.Name = "checkBoxAlt";
- this.checkBoxAlt.Size = new System.Drawing.Size(94, 56);
- this.checkBoxAlt.TabIndex = 16;
- this.checkBoxAlt.Text = "Alt";
- this.checkBoxAlt.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // chkAlwaysOnTop
- //
- this.chkAlwaysOnTop.CheckboxSize = 25;
- this.chkAlwaysOnTop.Checked = true;
- this.chkAlwaysOnTop.CheckState = System.Windows.Forms.CheckState.Checked;
- this.chkAlwaysOnTop.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.chkAlwaysOnTop.Location = new System.Drawing.Point(12, 385);
- this.chkAlwaysOnTop.Name = "chkAlwaysOnTop";
- this.chkAlwaysOnTop.Size = new System.Drawing.Size(193, 25);
- this.chkAlwaysOnTop.TabIndex = 0;
- this.chkAlwaysOnTop.Text = "Keep Window On Top";
- this.chkAlwaysOnTop.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.chkAlwaysOnTop.UseVisualStyleBackColor = true;
- this.chkAlwaysOnTop.CheckedChanged += new System.EventHandler(this.chkAlwaysOnTop_CheckedChanged);
- //
- // checkBoxShift
- //
- this.checkBoxShift.CheckboxSize = 40;
- this.checkBoxShift.Font = new System.Drawing.Font("Arial", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.checkBoxShift.Location = new System.Drawing.Point(287, 184);
- this.checkBoxShift.Name = "checkBoxShift";
- this.checkBoxShift.Size = new System.Drawing.Size(113, 56);
- this.checkBoxShift.TabIndex = 13;
- this.checkBoxShift.Text = "Shift";
- this.checkBoxShift.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // checkBoxCtrl
- //
- this.checkBoxCtrl.CheckboxSize = 40;
- this.checkBoxCtrl.Font = new System.Drawing.Font("Arial", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.checkBoxCtrl.Location = new System.Drawing.Point(25, 184);
- this.checkBoxCtrl.Name = "checkBoxCtrl";
- this.checkBoxCtrl.Size = new System.Drawing.Size(102, 56);
- this.checkBoxCtrl.TabIndex = 12;
- this.checkBoxCtrl.Text = "Ctrl";
- this.checkBoxCtrl.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
// panelCustomOutline
//
this.panelCustomOutline.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
@@ -463,17 +432,18 @@ private void InitializeComponent()
this.panelCustomOutline.Controls.Add(this.buttonSendCustomKey);
this.panelCustomOutline.Controls.Add(this.textBoxCustomCode);
this.panelCustomOutline.Controls.Add(this.radioButtonSC);
- this.panelCustomOutline.Location = new System.Drawing.Point(277, 255);
+ this.panelCustomOutline.Location = new System.Drawing.Point(416, 392);
this.panelCustomOutline.Margin = new System.Windows.Forms.Padding(0);
this.panelCustomOutline.Name = "panelCustomOutline";
- this.panelCustomOutline.Size = new System.Drawing.Size(137, 175);
+ this.panelCustomOutline.Size = new System.Drawing.Size(204, 267);
this.panelCustomOutline.TabIndex = 31;
//
// buttonCustomInfo
//
- this.buttonCustomInfo.Location = new System.Drawing.Point(110, 93);
+ this.buttonCustomInfo.Location = new System.Drawing.Point(165, 143);
+ this.buttonCustomInfo.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.buttonCustomInfo.Name = "buttonCustomInfo";
- this.buttonCustomInfo.Size = new System.Drawing.Size(20, 29);
+ this.buttonCustomInfo.Size = new System.Drawing.Size(30, 45);
this.buttonCustomInfo.TabIndex = 32;
this.buttonCustomInfo.Text = "?";
this.buttonCustomInfo.UseVisualStyleBackColor = true;
@@ -483,10 +453,9 @@ private void InitializeComponent()
//
this.radioButtonUnicode.AutoSize = true;
this.radioButtonUnicode.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.radioButtonUnicode.Location = new System.Drawing.Point(25, 73);
- this.radioButtonUnicode.Margin = new System.Windows.Forms.Padding(2);
+ this.radioButtonUnicode.Location = new System.Drawing.Point(38, 112);
this.radioButtonUnicode.Name = "radioButtonUnicode";
- this.radioButtonUnicode.Size = new System.Drawing.Size(76, 20);
+ this.radioButtonUnicode.Size = new System.Drawing.Size(109, 29);
this.radioButtonUnicode.TabIndex = 33;
this.radioButtonUnicode.TabStop = true;
this.radioButtonUnicode.Text = "Unicode";
@@ -497,27 +466,82 @@ private void InitializeComponent()
//
this.labelHexPrefix.AutoSize = true;
this.labelHexPrefix.Font = new System.Drawing.Font("Consolas", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.labelHexPrefix.Location = new System.Drawing.Point(5, 99);
+ this.labelHexPrefix.Location = new System.Drawing.Point(8, 152);
+ this.labelHexPrefix.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelHexPrefix.Name = "labelHexPrefix";
- this.labelHexPrefix.Size = new System.Drawing.Size(27, 19);
+ this.labelHexPrefix.Size = new System.Drawing.Size(38, 28);
this.labelHexPrefix.TabIndex = 31;
this.labelHexPrefix.Text = "0x";
//
// labelVersion
//
this.labelVersion.AutoSize = true;
+ this.labelVersion.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelVersion.ForeColor = System.Drawing.SystemColors.ControlDark;
- this.labelVersion.Location = new System.Drawing.Point(345, 447);
+ this.labelVersion.Location = new System.Drawing.Point(482, 688);
+ this.labelVersion.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelVersion.Name = "labelVersion";
- this.labelVersion.Size = new System.Drawing.Size(45, 13);
+ this.labelVersion.Size = new System.Drawing.Size(85, 25);
this.labelVersion.TabIndex = 32;
this.labelVersion.Text = "Version:";
//
+ // checkBoxAlt
+ //
+ this.checkBoxAlt.CheckboxSize = 40;
+ this.checkBoxAlt.Font = new System.Drawing.Font("Arial", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.checkBoxAlt.Location = new System.Drawing.Point(247, 283);
+ this.checkBoxAlt.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+ this.checkBoxAlt.Name = "checkBoxAlt";
+ this.checkBoxAlt.Size = new System.Drawing.Size(141, 86);
+ this.checkBoxAlt.TabIndex = 16;
+ this.checkBoxAlt.Text = "Alt";
+ this.checkBoxAlt.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // chkAlwaysOnTop
+ //
+ this.chkAlwaysOnTop.CheckboxSize = 25;
+ this.chkAlwaysOnTop.Checked = true;
+ this.chkAlwaysOnTop.CheckState = System.Windows.Forms.CheckState.Checked;
+ this.chkAlwaysOnTop.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.chkAlwaysOnTop.Location = new System.Drawing.Point(38, 597);
+ this.chkAlwaysOnTop.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+ this.chkAlwaysOnTop.Name = "chkAlwaysOnTop";
+ this.chkAlwaysOnTop.Size = new System.Drawing.Size(290, 38);
+ this.chkAlwaysOnTop.TabIndex = 0;
+ this.chkAlwaysOnTop.Text = "Keep Window On Top";
+ this.chkAlwaysOnTop.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+ this.chkAlwaysOnTop.UseVisualStyleBackColor = true;
+ this.chkAlwaysOnTop.CheckedChanged += new System.EventHandler(this.chkAlwaysOnTop_CheckedChanged);
+ //
+ // checkBoxShift
+ //
+ this.checkBoxShift.CheckboxSize = 40;
+ this.checkBoxShift.Font = new System.Drawing.Font("Arial", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.checkBoxShift.Location = new System.Drawing.Point(416, 283);
+ this.checkBoxShift.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+ this.checkBoxShift.Name = "checkBoxShift";
+ this.checkBoxShift.Size = new System.Drawing.Size(170, 86);
+ this.checkBoxShift.TabIndex = 13;
+ this.checkBoxShift.Text = "Shift";
+ this.checkBoxShift.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // checkBoxCtrl
+ //
+ this.checkBoxCtrl.CheckboxSize = 40;
+ this.checkBoxCtrl.Font = new System.Drawing.Font("Arial", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.checkBoxCtrl.Location = new System.Drawing.Point(64, 283);
+ this.checkBoxCtrl.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+ this.checkBoxCtrl.Name = "checkBoxCtrl";
+ this.checkBoxCtrl.Size = new System.Drawing.Size(153, 86);
+ this.checkBoxCtrl.TabIndex = 12;
+ this.checkBoxCtrl.Text = "Ctrl";
+ this.checkBoxCtrl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
// MainForm
//
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(427, 487);
+ this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
+ this.ClientSize = new System.Drawing.Size(640, 749);
this.Controls.Add(this.infoKeypressMethod);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.statusStrip1);
@@ -548,6 +572,7 @@ private void InitializeComponent()
this.Controls.Add(this.labelVersion);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+ this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.Name = "MainForm";
this.Text = "F-Key Sender";
((System.ComponentModel.ISupportInitialize)(this.nudDelay)).EndInit();
diff --git a/MainForm.cs b/MainForm.cs
index 5c09ff6..c847f8d 100644
--- a/MainForm.cs
+++ b/MainForm.cs
@@ -16,7 +16,7 @@ namespace F_Key_Sender
{
public partial class MainForm : Form
{
- const string VERSION = "1.1.0";
+ const string VERSION = "1.1.1";
// Dictionary to store virtual key codes and scan codes. Will want to use wscan codes for SendInput
private static readonly Dictionary keyCodes = new Dictionary
diff --git a/Program.cs b/Program.cs
index fad439f..5c2bde6 100644
--- a/Program.cs
+++ b/Program.cs
@@ -1,9 +1,11 @@
using System;
using System.Collections.Generic;
+using System.Collections.Specialized;
using System.Drawing;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
+using System.Configuration;
namespace F_Key_Sender
{
@@ -16,6 +18,15 @@ internal static class Program
[STAThread]
static void Main()
{
+ // -------- This code seems to be needed to actually get it to work with high DPI awareness even after adding app.manifest and app.config stuff --------
+ // Also need to add reference to System.Configuration as dependency by right clicking Project > Add > Reference > Search: System.Configuration
+ var section = ConfigurationManager.GetSection("System.Windows.Forms.ApplicationConfigurationSection") as NameValueCollection;
+ if (section != null)
+ {
+ section["DpiAwareness"] = "PerMonitorV2";
+ }
+ //------------------------------------------------------------------------------------------------------------------------------------------------------
+
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs
index cb22027..f629617 100644
--- a/Properties/AssemblyInfo.cs
+++ b/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@
// 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("1.1.0.0")]
-[assembly: AssemblyFileVersion("1.1.0.0")]
+[assembly: AssemblyVersion("1.1.1.0")]
+[assembly: AssemblyFileVersion("1.1.1.0")]
diff --git a/app.manifest b/app.manifest
new file mode 100644
index 0000000..20b4817
--- /dev/null
+++ b/app.manifest
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+