using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Threading; using System.Windows.Forms; //クラス(ホットキー登録・解除用フォーム) public class HotKeyForm : Form { [DllImport("user32.dll")] extern static int RegisterHotKey(IntPtr HWnd, int ID, int MOD_KEY, Keys KEY); [DllImport("user32.dll")] extern static int UnregisterHotKey(IntPtr HWnd, int ID); const int WM_HOTKEY