目录
实践过程
效果
代码
public partial class Form : Form
{
public Form()
{
InitializeComponent();
}
HOOK Hook = new HOOK();
public static string[] Arrstr = new string[];
public static string[,] ArrHotkey = new string[,2];
public static bool istabPage = true;
bool isShift = false;
string front = "";
string tem_s = "";
string tem_dir = "";
public static int tem_Set =;
public static int tem_Hotkey =;
private void Form_Load(object sender, EventArgs e)
{
Hook.KeyDown += new KeyEventHandler(Hook_KeyDown);
Hook.KeyUp += new KeyEventHandler(Hook_KeyUp);
Hook.KeyPress += new KeyPressEventHandler(Hook_KeyPress);
HOOK.isSet = false;
for (int i =; i < 6; i++)
{
Arrstr[i] = "";
}
for (int i =; i < 3; i++)
{
for (int j =; j < 2;j++ )
ArrHotkey[i,j] = "";
}
}
private void Form_FontChanged(object sender, EventArgs e)
{
Hook.Stop();
}
void Hook_KeyPress(object sender, KeyPressEventArgs e)
{
AddKeyboardEvent("KeyPress", "", e.KeyChar.ToString(), "", "", "");
}
void Hook_KeyUp(object sender, KeyEventArgs e)
{
AddKeyboardEvent("KeyUp", e.KeyCode.ToString(), "", e.Shift.ToString(), e.Alt.ToString(), e.Control.ToString());
}
void Hook_KeyDown(object sender, KeyEventArgs e)
{
AddKeyboardEvent("KeyDown", e.KeyCode.ToString(), "", e.Shift.ToString(), e.Alt.ToString(), e.Control.ToString());
}
public void AddKeyboardEvent(string eventType, string keyCode, string keyChar, string shift, string alt, string control)
{
tem_Set =;
tem_Hotkey =;
bool b = false;
string keyvalue = "";
GeyKeys(keyCode, out b, out keyvalue);
if (eventType == "KeyDown")
{
isShift = true;
if (tem_s == "")
{
if (HOOK.isSet == false)
{
if (istabPage == true)
SetTextBox(keyvalue);
}
else
{
for (int i =; i < 6; i++)
{
if (Arrstr[i] == tem_s)
{
tem_Set =;
break;
}
else
tem_Set =;
}
}
if (HOOK.isHotkey == false)
{
if (istabPage == false)
SetTextBox(keyvalue);
}
else
{
for (int i =; i < 3; i++)
{
if (ArrHotkey[i,] == tem_s)
{
tem_Hotkey =;
try
{
if (ArrHotkey[i,].Trim().Length != 0 && tem_dir != ArrHotkey[i, 1].Trim())
System.Diagnostics.Process.Start(ArrHotkey[i,]);
tem_dir = ArrHotkey[i,].Trim();
}
catch
{
MessageBox.Show("文件无法打开。");
}
break;
}
else
tem_Hotkey =;
}
}
}
}
if (eventType == "KeyUp")
{
isShift = false;
front = "";
tem_dir = "";
}
if (isShift == true && eventType == "KeyDown")
{
if (front != keyvalue)
{
tem_s = "";
if (front == "")
{
tem_s = keyvalue;
if (HOOK.isSet == false)
{
if (istabPage == true)
{
SetTextBox("");
SetTextBox(keyvalue);
}
}
else
{
for (int i =; i < 6; i++)
{
if (Arrstr[i] == tem_s)
{
tem_Set =;
break;
}
else
tem_Set =;
}
}
if (HOOK.isHotkey == false)
{
if (istabPage == false)
SetTextBox(keyvalue);
}
else
{
for (int i =; i < 3; i++)
{
if (ArrHotkey[i,] == tem_s)
{
tem_Hotkey =;
try
{
if (ArrHotkey[i,].Trim().Length != 0 && tem_dir != ArrHotkey[i, 1].Trim())
System.Diagnostics.Process.Start(ArrHotkey[i,]);
tem_dir = ArrHotkey[i,].Trim();
}
catch
{
MessageBox.Show("文件无法打开。");
}
break;
}
else
tem_Hotkey =;
}
}
}
else
{
tem_s = front + "+" + keyvalue;
if (HOOK.isSet == false)
{
if (istabPage == true)
{
SetTextBox("");
SetTextBox(front + "+" + keyvalue);
}
}
else
{
for (int i =; i < 6; i++)
{
if (Arrstr[i] == tem_s)
{
tem_Set =;
break;
}
else
tem_Set =;
}
}
if (HOOK.isHotkey == false)
{
if (istabPage == false)
{
SetTextBox("");
SetTextBox(front + "+" + keyvalue);
}
}
else
{
for (int i =; i < 3; i++)
{
if (ArrHotkey[i,] == tem_s)
{
tem_Hotkey =;
try
{
if (ArrHotkey[i,].Trim().Length != 0 && tem_dir != ArrHotkey[i, 1].Trim())
System.Diagnostics.Process.Start(ArrHotkey[i,]);
tem_dir = ArrHotkey[i,].Trim();
}
catch
{
MessageBox.Show("文件无法打开。");
}
break;
}
else
tem_Hotkey =;
}
}
tem_s = "";
}
}
front = keyvalue;
}
if (tem_Hotkey > || tem_Set > 0)
HOOK.pp =;
else
HOOK.pp =;
if (HOOK.isSet == false)
HOOK.pp =;
if (HOOK.isHotkey == false)
HOOK.pp =;
}
public void SetTextBox(string value)
{
if (textBox.Focused)
textBox.Text=value;
if (textBox.Focused)
textBox.Text = value;
if (textBox.Focused)
textBox.Text = value;
if (textBox.Focused)
textBox.Text = value;
if (textBox.Focused)
textBox.Text = value;
if (textBox.Focused)
textBox.Text = value;
if (textBox.Focused)
textBox.Text = value;
if (textBox.Focused)
textBox.Text = value;
if (textBox.Focused)
textBox.Text = value;
}
public void GeyKeys(string k, out bool b, out string keyvalue)
{
if (k.Contains("ControlKey"))
{
b = true;
keyvalue = "Ctrl";
return;
}
if (k.Contains("Shift"))
{
b = true;
keyvalue = "Shift";
return;
}
if (k.Contains("Win"))
{
b = true;
keyvalue = "Win";
return;
}
if (k.Contains("Menu"))
{
b = true;
keyvalue = "Alt";
return;
}
if (k.Length == && k.Substring(0, 1) == "D")
{
b = true;
keyvalue = k.Substring(, 1);
return;
}
if (k.Contains("Menu"))
{
b = true;
keyvalue = "Alt";
return;
}
if (k.Contains("OemMinus"))
{
b = true;
keyvalue = "_";
return;
}
if (k.Contains("Oem"))
{
b = true;
keyvalue = "\\";
return;
}
b = true;
keyvalue = k;
}
private void button_Click(object sender, EventArgs e)
{
HOOK.isSet = false;
textBox.Text = Arrstr[0];
textBox.Text = Arrstr[1];
textBox.Text = Arrstr[2];
textBox.Text = Arrstr[3];
textBox.Text = Arrstr[4];
textBox.Text = Arrstr[5];
Hook.Stop();
Hook.Start();
}
private void button_Click(object sender, EventArgs e)
{
Arrstr[] = textBox1.Text;
Arrstr[] = textBox2.Text;
Arrstr[] = textBox3.Text;
Arrstr[] = textBox4.Text;
Arrstr[] = textBox5.Text;
Arrstr[] = textBox6.Text;
HOOK.isSet = true;
HOOK.isHotkey = true;
Hook.Stop();
Hook.Start();
}
private void button_Click(object sender, EventArgs e)
{
textBox.Clear();
}
private void button_Click(object sender, EventArgs e)
{
textBox.Clear();
}
private void button_Click(object sender, EventArgs e)
{
textBox.Clear();
}
private void button_Click(object sender, EventArgs e)
{
textBox.Clear();
}
private void button_Click(object sender, EventArgs e)
{
textBox.Clear();
}
private void button_Click(object sender, EventArgs e)
{
textBox.Clear();
}
private void button_Click(object sender, EventArgs e)
{
HOOK.isHotkey = false;
textBox.Text = ArrHotkey[0, 0];
textBox.Text = ArrHotkey[0, 1];
textBox.Text = ArrHotkey[1, 0];
textBox.Text = ArrHotkey[1, 1];
textBox.Text = ArrHotkey[2, 0];
textBox.Text = ArrHotkey[2, 1];
Hook.Stop();
Hook.Start();
}
private void button_Click(object sender, EventArgs e)
{
openFileDialog.FileName = "";
if (openFileDialog.ShowDialog() == DialogResult.OK)
textBox.Text = openFileDialog1.FileName;
}
private void button_Click(object sender, EventArgs e)
{
openFileDialog.FileName = "";
if (openFileDialog.ShowDialog() == DialogResult.OK)
textBox.Text = openFileDialog1.FileName;
}
private void button_Click(object sender, EventArgs e)
{
openFileDialog.FileName = "";
if (openFileDialog.ShowDialog() == DialogResult.OK)
textBox.Text = openFileDialog1.FileName;
}
private void button_Click(object sender, EventArgs e)
{
ArrHotkey[, 0] = textBox7.Text;
ArrHotkey[, 1] = textBox8.Text;
ArrHotkey[, 0] = textBox9.Text;
ArrHotkey[, 1] = textBox10.Text;
ArrHotkey[, 0] = textBox11.Text;
ArrHotkey[, 1] = textBox12.Text;
HOOK.isSet = true;
HOOK.isHotkey = true;
Hook.Stop();
Hook.Start();
}
private void tabControl_Click(object sender, EventArgs e)
{
if (tabControl.SelectedTab.Name == "tabPage1")
istabPage = true;
else
istabPage = false;
}
private void button_Click(object sender, EventArgs e)
{
textBox.Clear();
}
private void button_Click(object sender, EventArgs e)
{
textBox.Clear();
}
private void button_Click(object sender, EventArgs e)
{
textBox.Clear();
}
}
class HOOK
{
#region 私有变量
private IntPtr m_pKeyboardHook = IntPtr.Zero;
public delegate int HookProc(int nCode, Int wParam, IntPtr lParam);
private HookProc m_KeyboardHookProcedure;
public const int idHook =;
[DllImport("user.dll", CallingConvention = CallingConvention.StdCall)]
public static extern IntPtr SetWindowsHookEx(int idHook, HookProc lpfn, IntPtr pInstance, int threadId);
[DllImport("user.dll", CallingConvention = CallingConvention.StdCall)]
public static extern bool UnhookWindowsHookEx(IntPtr pHookHandle);
[DllImport("user.dll", CallingConvention = CallingConvention.StdCall)]
public static extern int CallNextHookEx(IntPtr pHookHandle, int nCode, Int wParam, IntPtr lParam);
[StructLayout(LayoutKind.Sequential)]
public struct KeyMSG
{
public int vkCode;
public int scanCode;
public int flags;
public int time;
public int dwExtraInfo;
}
protected const int WM_QUERYENDSESSION =x0011;
protected const int WM_KEYDOWN =x100;
protected const int WM_KEYUP =x101;
protected const int WM_SYSKEYDOWN =x104;
protected const int WM_SYSKEYUP =x105;
protected const byte VK_SHIFT =x10;
protected const byte VK_CAPITAL =x14;
protected const byte VK_NUMLOCK =x90;
protected const byte VK_LSHIFT =xA0;
protected const byte VK_RSHIFT =xA1;
protected const int VK_LWIN =;
protected const int VK_RWIN =;
protected const byte VK_LCONTROL =xA2;
protected const byte VK_RCONTROL =x3;
protected const byte VK_LALT =xA4;
protected const byte VK_RALT =xA5;
protected const byte LLKHF_ALTDOWN =x20;
public bool Porwer = true;
public static int pp =;
public static bool isSet = false;
public static bool isHotkey = false;
public static bool isInstall = false;
#endregion
#region 事件的声明
public event KeyEventHandler KeyDown;
public event KeyEventHandler KeyUp;
public event KeyPressEventHandler KeyPress;
#endregion
#region 方法
private int KeyboardHookProc(int nCode, int wParam, IntPtr lParam)
{
if (nCode > - && (KeyDown != null || KeyUp != null || KeyPress != null))
{
KeyMSG keyboardHookStruct = (KeyMSG)Marshal.PtrToStructure(lParam, typeof(KeyMSG));
KeyEventArgs e = new KeyEventArgs((Keys)(keyboardHookStruct.vkCode));
switch (wParam)
{
case WM_KEYDOWN:
case WM_SYSKEYDOWN:
if (KeyDown != null)
{
KeyDown(this, e);
}
break;
case WM_KEYUP:
case WM_SYSKEYUP:
if (KeyUp != null)
{
KeyUp(this, e);
}
break;
}
}
return pp;
}
#endregion
#region 安装、卸载钩子
public bool Start()
{
IntPtr pInstance = (IntPtr);
if (this.m_pKeyboardHook == IntPtr.Zero)
{
this.m_KeyboardHookProcedure = new HookProc(KeyboardHookProc);
this.m_pKeyboardHook = SetWindowsHookEx(idHook, m_KeyboardHookProcedure, pInstance,);
if (this.m_pKeyboardHook == IntPtr.Zero)
{
this.Stop();
return false;
}
}
isInstall = true;
return true;
}
public bool Stop()
{
if (isInstall == false)
{
return true;
}
bool result = true;
if (this.m_pKeyboardHook != IntPtr.Zero)
{
result = (UnhookWindowsHookEx(this.m_pKeyboardHook) && result);
this.m_pKeyboardHook = IntPtr.Zero;
}
return result;
}
#endregion 公共方法
}
partial class Form
{
private System.ComponentModel.IContainer components = null;
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
private void InitializeComponent()
{
this.tabControl = new System.Windows.Forms.TabControl();
this.tabPage = new System.Windows.Forms.TabPage();
this.button = new System.Windows.Forms.Button();
this.button = new System.Windows.Forms.Button();
this.button = new System.Windows.Forms.Button();
this.button = new System.Windows.Forms.Button();
this.button = new System.Windows.Forms.Button();
this.button = new System.Windows.Forms.Button();
this.button = new System.Windows.Forms.Button();
this.button = new System.Windows.Forms.Button();
this.label = new System.Windows.Forms.Label();
this.label = new System.Windows.Forms.Label();
this.label = new System.Windows.Forms.Label();
this.label = new System.Windows.Forms.Label();
this.label = new System.Windows.Forms.Label();
this.label = new System.Windows.Forms.Label();
this.textBox = new System.Windows.Forms.TextBox();
this.textBox = new System.Windows.Forms.TextBox();
this.textBox = new System.Windows.Forms.TextBox();
this.textBox = new System.Windows.Forms.TextBox();
this.textBox = new System.Windows.Forms.TextBox();
this.textBox = new System.Windows.Forms.TextBox();
this.tabPage = new System.Windows.Forms.TabPage();
this.button = new System.Windows.Forms.Button();
this.button = new System.Windows.Forms.Button();
this.button = new System.Windows.Forms.Button();
this.button = new System.Windows.Forms.Button();
this.button = new System.Windows.Forms.Button();
this.button = new System.Windows.Forms.Button();
this.button = new System.Windows.Forms.Button();
this.button = new System.Windows.Forms.Button();
this.textBox = new System.Windows.Forms.TextBox();
this.textBox = new System.Windows.Forms.TextBox();
this.label = new System.Windows.Forms.Label();
this.label = new System.Windows.Forms.Label();
this.label = new System.Windows.Forms.Label();
this.textBox = new System.Windows.Forms.TextBox();
this.textBox = new System.Windows.Forms.TextBox();
this.textBox = new System.Windows.Forms.TextBox();
this.textBox = new System.Windows.Forms.TextBox();
this.label = new System.Windows.Forms.Label();
this.label = new System.Windows.Forms.Label();
this.label = new System.Windows.Forms.Label();
this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
this.tabControl.SuspendLayout();
this.tabPage.SuspendLayout();
this.tabPage.SuspendLayout();
this.SuspendLayout();
this.tabControl.Controls.Add(this.tabPage1);
this.tabControl.Controls.Add(this.tabPage2);
this.tabControl.Location = new System.Drawing.Point(6, 5);
this.tabControl.Name = "tabControl1";
this.tabControl.SelectedIndex = 0;
this.tabControl.Size = new System.Drawing.Size(252, 233);
this.tabControl.TabIndex = 0;
this.tabControl.Click += new System.EventHandler(this.tabControl1_Click);
this.tabPage.Controls.Add(this.button8);
this.tabPage.Controls.Add(this.button7);
this.tabPage.Controls.Add(this.button6);
this.tabPage.Controls.Add(this.button5);
this.tabPage.Controls.Add(this.button4);
this.tabPage.Controls.Add(this.button3);
this.tabPage.Controls.Add(this.button2);
this.tabPage.Controls.Add(this.button1);
this.tabPage.Controls.Add(this.label6);
this.tabPage.Controls.Add(this.label5);
this.tabPage.Controls.Add(this.label4);
this.tabPage.Controls.Add(this.label3);
this.tabPage.Controls.Add(this.label2);
this.tabPage.Controls.Add(this.label1);
this.tabPage.Controls.Add(this.textBox6);
this.tabPage.Controls.Add(this.textBox5);
this.tabPage.Controls.Add(this.textBox4);
this.tabPage.Controls.Add(this.textBox3);
this.tabPage.Controls.Add(this.textBox2);
this.tabPage.Controls.Add(this.textBox1);
this.tabPage.Location = new System.Drawing.Point(4, 21);
this.tabPage.Name = "tabPage1";
this.tabPage.Padding = new System.Windows.Forms.Padding(3);
this.tabPage.Size = new System.Drawing.Size(244, 208);
this.tabPage.TabIndex = 0;
this.tabPage.Text = "屏蔽热键";
this.tabPage.UseVisualStyleBackColor = true;
this.button.Location = new System.Drawing.Point(198, 148);
this.button.Name = "button8";
this.button.Size = new System.Drawing.Size(35, 23);
this.button.TabIndex = 22;
this.button.Text = "Del";
this.button.UseVisualStyleBackColor = true;
this.button.Click += new System.EventHandler(this.button8_Click);
this.button.Location = new System.Drawing.Point(198, 123);
this.button.Name = "button7";
this.button.Size = new System.Drawing.Size(35, 23);
this.button.TabIndex = 21;
this.button.Text = "Del";
this.button.UseVisualStyleBackColor = true;
this.button.Click += new System.EventHandler(this.button7_Click);
this.button.Location = new System.Drawing.Point(198, 96);
this.button.Name = "button6";
this.button.Size = new System.Drawing.Size(35, 23);
this.button.TabIndex = 20;
this.button.Text = "Del";
this.button.UseVisualStyleBackColor = true;
this.button.Click += new System.EventHandler(this.button6_Click);
this.button.Location = new System.Drawing.Point(198, 69);
this.button.Name = "button5";
this.button.Size = new System.Drawing.Size(35, 23);
this.button.TabIndex = 19;
this.button.Text = "Del";
this.button.UseVisualStyleBackColor = true;
this.button.Click += new System.EventHandler(this.button5_Click);
this.button.Location = new System.Drawing.Point(198, 44);
this.button.Name = "button4";
this.button.Size = new System.Drawing.Size(35, 23);
this.button.TabIndex = 18;
this.button.Text = "Del";
this.button.UseVisualStyleBackColor = true;
this.button.Click += new System.EventHandler(this.button4_Click);
this.button.Location = new System.Drawing.Point(198, 18);
this.button.Name = "button3";
this.button.Size = new System.Drawing.Size(35, 23);
this.button.TabIndex = 17;
this.button.Text = "Del";
this.button.UseVisualStyleBackColor = true;
this.button.Click += new System.EventHandler(this.button3_Click);
this.button.Location = new System.Drawing.Point(158, 179);
this.button.Name = "button2";
this.button.Size = new System.Drawing.Size(75, 23);
this.button.TabIndex = 16;
this.button.Text = "确定";
this.button.UseVisualStyleBackColor = true;
this.button.Click += new System.EventHandler(this.button2_Click);
this.button.Location = new System.Drawing.Point(77, 179);
this.button.Name = "button1";
this.button.Size = new System.Drawing.Size(75, 23);
this.button.TabIndex = 15;
this.button.Text = "设置";
this.button.UseVisualStyleBackColor = true;
this.button.Click += new System.EventHandler(this.button1_Click);
this.label.AutoSize = true;
this.label.Location = new System.Drawing.Point(13, 155);
this.label.Name = "label6";
this.label.Size = new System.Drawing.Size(65, 12);
this.label.TabIndex = 14;
this.label.Text = "屏蔽热键:";
this.label.AutoSize = true;
this.label.Location = new System.Drawing.Point(13, 129);
this.label.Name = "label5";
this.label.Size = new System.Drawing.Size(65, 12);
this.label.TabIndex = 13;
this.label.Text = "屏蔽热键:";
this.label.AutoSize = true;
this.label.Location = new System.Drawing.Point(13, 103);
this.label.Name = "label4";
this.label.Size = new System.Drawing.Size(65, 12);
this.label.TabIndex = 12;
this.label.Text = "屏蔽热键:";
this.label.AutoSize = true;
this.label.Location = new System.Drawing.Point(13, 77);
this.label.Name = "label3";
this.label.Size = new System.Drawing.Size(65, 12);
this.label.TabIndex = 11;
this.label.Text = "屏蔽热键:";
this.label.AutoSize = true;
this.label.Location = new System.Drawing.Point(13, 51);
this.label.Name = "label2";
this.label.Size = new System.Drawing.Size(65, 12);
this.label.TabIndex = 10;
this.label.Text = "屏蔽热键:";
this.label.AutoSize = true;
this.label.Location = new System.Drawing.Point(13, 25);
this.label.Name = "label1";
this.label.Size = new System.Drawing.Size(65, 12);
this.label.TabIndex = 9;
this.label.Text = "屏蔽热键:";
this.textBox.Location = new System.Drawing.Point(84, 149);
this.textBox.Name = "textBox6";
this.textBox.Size = new System.Drawing.Size(108, 21);
this.textBox.TabIndex = 8;
this.textBox.Location = new System.Drawing.Point(84, 123);
this.textBox.Name = "textBox5";
this.textBox.Size = new System.Drawing.Size(108, 21);
this.textBox.TabIndex = 7;
this.textBox.Location = new System.Drawing.Point(84, 97);
this.textBox.Name = "textBox4";
this.textBox.Size = new System.Drawing.Size(108, 21);
this.textBox.TabIndex = 6;
this.textBox.Location = new System.Drawing.Point(84, 71);
this.textBox.Name = "textBox3";
this.textBox.Size = new System.Drawing.Size(108, 21);
this.textBox.TabIndex = 5;
this.textBox.Location = new System.Drawing.Point(84, 45);
this.textBox.Name = "textBox2";
this.textBox.Size = new System.Drawing.Size(108, 21);
this.textBox.TabIndex = 4;
this.textBox.Location = new System.Drawing.Point(84, 19);
this.textBox.Name = "textBox1";
this.textBox.Size = new System.Drawing.Size(108, 21);
this.textBox.TabIndex = 3;
this.tabPage.Controls.Add(this.button16);
this.tabPage.Controls.Add(this.button15);
this.tabPage.Controls.Add(this.button14);
this.tabPage.Controls.Add(this.button13);
this.tabPage.Controls.Add(this.button12);
this.tabPage.Controls.Add(this.button11);
this.tabPage.Controls.Add(this.button10);
this.tabPage.Controls.Add(this.button9);
this.tabPage.Controls.Add(this.textBox12);
this.tabPage.Controls.Add(this.textBox11);
this.tabPage.Controls.Add(this.label12);
this.tabPage.Controls.Add(this.label11);
this.tabPage.Controls.Add(this.label10);
this.tabPage.Controls.Add(this.textBox10);
this.tabPage.Controls.Add(this.textBox9);
this.tabPage.Controls.Add(this.textBox8);
this.tabPage.Controls.Add(this.textBox7);
this.tabPage.Controls.Add(this.label9);
this.tabPage.Controls.Add(this.label8);
this.tabPage.Controls.Add(this.label7);
this.tabPage.Location = new System.Drawing.Point(4, 21);
this.tabPage.Name = "tabPage2";
this.tabPage.Padding = new System.Windows.Forms.Padding(3);
this.tabPage.Size = new System.Drawing.Size(244, 208);
this.tabPage.TabIndex = 1;
this.tabPage.Text = "设置热键";
this.tabPage.UseVisualStyleBackColor = true;
this.button.Location = new System.Drawing.Point(200, 144);
this.button.Name = "button16";
this.button.Size = new System.Drawing.Size(36, 23);
this.button.TabIndex = 19;
this.button.Text = "...";
this.button.UseVisualStyleBackColor = true;
this.button.Click += new System.EventHandler(this.button16_Click);
this.button.Location = new System.Drawing.Point(200, 91);
this.button.Name = "button15";
this.button.Size = new System.Drawing.Size(36, 23);
this.button.TabIndex = 18;
this.button.Text = "...";
this.button.UseVisualStyleBackColor = true;
this.button.Click += new System.EventHandler(this.button15_Click);
this.button.Location = new System.Drawing.Point(200, 118);
this.button.Name = "button14";
this.button.Size = new System.Drawing.Size(36, 23);
this.button.TabIndex = 17;
this.button.Text = "Del";
this.button.UseVisualStyleBackColor = true;
this.button.Click += new System.EventHandler(this.button14_Click);
this.button.Location = new System.Drawing.Point(200, 66);
this.button.Name = "button13";
this.button.Size = new System.Drawing.Size(36, 23);
this.button.TabIndex = 16;
this.button.Text = "Del";
this.button.UseVisualStyleBackColor = true;
this.button.Click += new System.EventHandler(this.button13_Click);
this.button.Location = new System.Drawing.Point(200, 41);
this.button.Name = "button12";
this.button.Size = new System.Drawing.Size(36, 23);
this.button.TabIndex = 15;
this.button.Text = "...";
this.button.UseVisualStyleBackColor = true;
this.button.Click += new System.EventHandler(this.button12_Click);
this.button.Location = new System.Drawing.Point(200, 15);
this.button.Name = "button11";
this.button.Size = new System.Drawing.Size(36, 23);
this.button.TabIndex = 14;
this.button.Text = "Del";
this.button.UseVisualStyleBackColor = true;
this.button.Click += new System.EventHandler(this.button11_Click);
this.button.Location = new System.Drawing.Point(161, 176);
this.button.Name = "button10";
this.button.Size = new System.Drawing.Size(75, 23);
this.button.TabIndex = 13;
this.button.Text = "确定";
this.button.UseVisualStyleBackColor = true;
this.button.Click += new System.EventHandler(this.button10_Click);
this.button.Location = new System.Drawing.Point(82, 176);
this.button.Name = "button9";
this.button.Size = new System.Drawing.Size(75, 23);
this.button.TabIndex = 12;
this.button.Text = "设置";
this.button.UseVisualStyleBackColor = true;
this.button.Click += new System.EventHandler(this.button9_Click);
this.textBox.Location = new System.Drawing.Point(56, 145);
this.textBox.Name = "textBox12";
this.textBox.Size = new System.Drawing.Size(138, 21);
this.textBox.TabIndex = 11;
this.textBox.Location = new System.Drawing.Point(82, 119);
this.textBox.Name = "textBox11";
this.textBox.Size = new System.Drawing.Size(112, 21);
this.textBox.TabIndex = 10;
this.label.AutoSize = true;
this.label.Location = new System.Drawing.Point(9, 151);
this.label.Name = "label12";
this.label.Size = new System.Drawing.Size(41, 12);
this.label.TabIndex = 9;
this.label.Text = "任务:";
this.label.AutoSize = true;
this.label.Location = new System.Drawing.Point(9, 125);
this.label.Name = "label11";
this.label.Size = new System.Drawing.Size(65, 12);
this.label.TabIndex = 8;
this.label.Text = "设置热键:";
this.label.AutoSize = true;
this.label.Location = new System.Drawing.Point(9, 47);
this.label.Name = "label10";
this.label.Size = new System.Drawing.Size(41, 12);
this.label.TabIndex = 7;
this.label.Text = "任务:";
this.textBox.Location = new System.Drawing.Point(56, 92);
this.textBox.Name = "textBox10";
this.textBox.Size = new System.Drawing.Size(138, 21);
this.textBox.TabIndex = 6;
this.textBox.Location = new System.Drawing.Point(82, 67);
this.textBox.Name = "textBox9";
this.textBox.Size = new System.Drawing.Size(112, 21);
this.textBox.TabIndex = 5;
this.textBox.Location = new System.Drawing.Point(56, 42);
this.textBox.Name = "textBox8";
this.textBox.Size = new System.Drawing.Size(138, 21);
this.textBox.TabIndex = 4;
this.textBox.Location = new System.Drawing.Point(82, 16);
this.textBox.Name = "textBox7";
this.textBox.Size = new System.Drawing.Size(112, 21);
this.textBox.TabIndex = 3;
this.label.AutoSize = true;
this.label.Location = new System.Drawing.Point(9, 98);
this.label.Name = "label9";
this.label.Size = new System.Drawing.Size(41, 12);
this.label.TabIndex = 2;
this.label.Text = "任务:";
this.label.AutoSize = true;
this.label.Location = new System.Drawing.Point(9, 72);
this.label.Name = "label8";
this.label.Size = new System.Drawing.Size(65, 12);
this.label.TabIndex = 1;
this.label.Text = "设置热键:";
this.label.AutoSize = true;
this.label.Location = new System.Drawing.Point(9, 22);
this.label.Name = "label7";
this.label.Size = new System.Drawing.Size(65, 12);
this.label.TabIndex = 0;
this.label.Text = "设置热键:";
this.openFileDialog.FileName = "openFileDialog1";
this.AutoScaleDimensions = new System.Drawing.SizeF(F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(, 242);
this.Controls.Add(this.tabControl);
this.Name = "Form";
this.Text = "设置或屏蔽热键";
this.Load += new System.EventHandler(this.Form_Load);
this.FontChanged += new System.EventHandler(this.Form_FontChanged);
this.tabControl.ResumeLayout(false);
this.tabPage.ResumeLayout(false);
this.tabPage.PerformLayout();
this.tabPage.ResumeLayout(false);
this.tabPage.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.TabControl tabControl;
private System.Windows.Forms.TabPage tabPage;
private System.Windows.Forms.TabPage tabPage;
private System.Windows.Forms.TextBox textBox;
private System.Windows.Forms.TextBox textBox;
private System.Windows.Forms.TextBox textBox;
private System.Windows.Forms.TextBox textBox;
private System.Windows.Forms.TextBox textBox;
private System.Windows.Forms.Label label;
private System.Windows.Forms.Label label;
private System.Windows.Forms.Label label;
private System.Windows.Forms.Label label;
private System.Windows.Forms.Label label;
private System.Windows.Forms.Label label;
private System.Windows.Forms.TextBox textBox;
private System.Windows.Forms.Button button;
private System.Windows.Forms.Button button;
private System.Windows.Forms.Button button;
private System.Windows.Forms.Button button;
private System.Windows.Forms.Button button;
private System.Windows.Forms.Button button;
private System.Windows.Forms.Button button;
private System.Windows.Forms.Button button;
private System.Windows.Forms.TextBox textBox;
private System.Windows.Forms.TextBox textBox;
private System.Windows.Forms.TextBox textBox;
private System.Windows.Forms.TextBox textBox;
private System.Windows.Forms.Label label;
private System.Windows.Forms.Label label;
private System.Windows.Forms.Label label;
private System.Windows.Forms.TextBox textBox;
private System.Windows.Forms.TextBox textBox;
private System.Windows.Forms.Label label;
private System.Windows.Forms.Label label;
private System.Windows.Forms.Label label;
private System.Windows.Forms.Button button;
private System.Windows.Forms.Button button;
private System.Windows.Forms.Button button;
private System.Windows.Forms.Button button;
private System.Windows.Forms.Button button;
private System.Windows.Forms.Button button;
private System.Windows.Forms.Button button;
private System.Windows.Forms.Button button;
private System.Windows.Forms.OpenFileDialog openFileDialog;
}