mirror of
https://github.com/flashwave/topmostfriend.git
synced 2024-11-22 09:48:44 +00:00
v1.4.2 - 2020-06-10
This commit is contained in:
parent
7f04d75c72
commit
fbfe5c6837
2 changed files with 25 additions and 4 deletions
|
@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
|
||||||
// Build Number
|
// Build Number
|
||||||
// Revision
|
// Revision
|
||||||
//
|
//
|
||||||
[assembly: AssemblyVersion("1.4.1.0")]
|
[assembly: AssemblyVersion("1.4.2.0")]
|
||||||
[assembly: AssemblyFileVersion("1.4.1.0")]
|
[assembly: AssemblyFileVersion("1.4.2.0")]
|
||||||
|
|
|
@ -22,6 +22,7 @@ namespace TopMostFriend {
|
||||||
public readonly CheckBox FgModCtrl;
|
public readonly CheckBox FgModCtrl;
|
||||||
public readonly CheckBox FgModAlt;
|
public readonly CheckBox FgModAlt;
|
||||||
public readonly CheckBox FgModShift;
|
public readonly CheckBox FgModShift;
|
||||||
|
public readonly CheckBox FgModWindows;
|
||||||
|
|
||||||
public readonly CheckBox FlAlwaysAdmin;
|
public readonly CheckBox FlAlwaysAdmin;
|
||||||
public readonly CheckBox FlToggleNotification;
|
public readonly CheckBox FlToggleNotification;
|
||||||
|
@ -34,7 +35,7 @@ namespace TopMostFriend {
|
||||||
StartPosition = FormStartPosition.CenterScreen;
|
StartPosition = FormStartPosition.CenterScreen;
|
||||||
FormBorderStyle = FormBorderStyle.FixedSingle;
|
FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||||
AutoScaleMode = AutoScaleMode.Dpi;
|
AutoScaleMode = AutoScaleMode.Dpi;
|
||||||
ClientSize = new Size(410, 278);
|
ClientSize = new Size(430, 278);
|
||||||
MinimizeBox = MaximizeBox = false;
|
MinimizeBox = MaximizeBox = false;
|
||||||
MinimumSize = MaximumSize = Size;
|
MinimumSize = MaximumSize = Size;
|
||||||
|
|
||||||
|
@ -140,8 +141,19 @@ namespace TopMostFriend {
|
||||||
};
|
};
|
||||||
FgModShift.Click += FgModShift_Click;
|
FgModShift.Click += FgModShift_Click;
|
||||||
|
|
||||||
|
FgModWindows = new CheckBox {
|
||||||
|
Text = @"WIN",
|
||||||
|
Location = new Point(mod_x + 150, mod_y),
|
||||||
|
Checked = (KeyCode & (int)Win32ModKeys.MOD_WIN) > 0,
|
||||||
|
Appearance = FgModCtrl.Appearance,
|
||||||
|
Size = FgModCtrl.Size,
|
||||||
|
TextAlign = FgModCtrl.TextAlign,
|
||||||
|
TabIndex = 105,
|
||||||
|
};
|
||||||
|
FgModWindows.Click += FgModWindows_Click;
|
||||||
|
|
||||||
hotKeyGroup.Controls.AddRange(new Control[] {
|
hotKeyGroup.Controls.AddRange(new Control[] {
|
||||||
toggleForegroundLabel, FgModCtrl, FgModAlt, FgModShift, fgReset, FgKey,
|
toggleForegroundLabel, FgModCtrl, FgModAlt, FgModShift, FgModWindows, fgReset, FgKey,
|
||||||
});
|
});
|
||||||
|
|
||||||
FlAlwaysAdmin = new CheckBox {
|
FlAlwaysAdmin = new CheckBox {
|
||||||
|
@ -244,6 +256,15 @@ namespace TopMostFriend {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void FgModWindows_Click(object sender, EventArgs e) {
|
||||||
|
if(sender is CheckBox cb) {
|
||||||
|
if(cb.Checked)
|
||||||
|
KeyCode |= (int)Win32ModKeys.MOD_WIN;
|
||||||
|
else
|
||||||
|
KeyCode &= ~(int)Win32ModKeys.MOD_WIN;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void FgKey_KeyDown(object sender, KeyEventArgs e) {
|
private void FgKey_KeyDown(object sender, KeyEventArgs e) {
|
||||||
if (!(sender is TextBox textBox))
|
if (!(sender is TextBox textBox))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue