{"id":78858,"date":"2024-03-20T20:23:26","date_gmt":"2024-03-20T11:23:26","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%ae-registerhotkey-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9f%e3%83%9b%e3%83%83%e3%83%88%e3%82%ad%e3%83%bc%e7%99%bb%e9%8c%b2%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/"},"modified":"2025-08-12T04:13:27","modified_gmt":"2025-08-11T19:13:27","slug":"c-%e3%81%ae-registerhotkey-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9f%e3%83%9b%e3%83%83%e3%83%88%e3%82%ad%e3%83%bc%e7%99%bb%e9%8c%b2%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%ae-registerhotkey-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9f%e3%83%9b%e3%83%83%e3%83%88%e3%82%ad%e3%83%bc%e7%99%bb%e9%8c%b2%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/","title":{"rendered":"C# \u306e RegisterHotKey \u3092\u4f7f\u7528\u3057\u305f\u30db\u30c3\u30c8\u30ad\u30fc\u767b\u9332\u306e\u5b9f\u88c5\u65b9\u6cd5"},"content":{"rendered":"<p>C#\u3067\u306f\u3001User32.dll\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u3042\u308bRegisterHotKey\u95a2\u6570\u3092\u7528\u3044\u3066\u30db\u30c3\u30c8\u30ad\u30fc\u3092\u767b\u9332\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306b\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">using<\/span> System;\r\n<span class=\"hljs-keyword\">using<\/span> System.Runtime.InteropServices;\r\n<span class=\"hljs-keyword\">using<\/span> System.Windows.Forms;\r\n\r\n<span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title\">HotKeyManager<\/span>\r\n{\r\n    [<span class=\"hljs-meta\">DllImport(<span class=\"hljs-string\">\"user32.dll\"<\/span>)<\/span>]\r\n    <span class=\"hljs-function\"><span class=\"hljs-keyword\">private<\/span> <span class=\"hljs-keyword\">static<\/span> <span class=\"hljs-keyword\">extern<\/span> <span class=\"hljs-built_in\">bool<\/span> <span class=\"hljs-title\">RegisterHotKey<\/span>(<span class=\"hljs-params\">IntPtr hWnd, <span class=\"hljs-built_in\">int<\/span> id, <span class=\"hljs-built_in\">uint<\/span> fsModifiers, <span class=\"hljs-built_in\">uint<\/span> vk<\/span>)<\/span>;\r\n\r\n    [<span class=\"hljs-meta\">DllImport(<span class=\"hljs-string\">\"user32.dll\"<\/span>)<\/span>]\r\n    <span class=\"hljs-function\"><span class=\"hljs-keyword\">private<\/span> <span class=\"hljs-keyword\">static<\/span> <span class=\"hljs-keyword\">extern<\/span> <span class=\"hljs-built_in\">bool<\/span> <span class=\"hljs-title\">UnregisterHotKey<\/span>(<span class=\"hljs-params\">IntPtr hWnd, <span class=\"hljs-built_in\">int<\/span> id<\/span>)<\/span>;\r\n\r\n    <span class=\"hljs-keyword\">private<\/span> <span class=\"hljs-keyword\">const<\/span> <span class=\"hljs-built_in\">int<\/span> WM_HOTKEY = <span class=\"hljs-number\">0x0312<\/span>;\r\n\r\n    <span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">static<\/span> <span class=\"hljs-keyword\">event<\/span> EventHandler&lt;HotKeyEventArgs&gt; HotKeyPressed;\r\n\r\n    <span class=\"hljs-function\"><span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">static<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">RegisterHotKey<\/span>(<span class=\"hljs-params\">Keys key, KeyModifiers modifiers<\/span>)<\/span>\r\n    {\r\n        <span class=\"hljs-built_in\">int<\/span> id = key.GetHashCode();\r\n        RegisterHotKey(IntPtr.Zero, id, (<span class=\"hljs-built_in\">uint<\/span>)modifiers, (<span class=\"hljs-built_in\">uint<\/span>)key);\r\n    }\r\n\r\n    <span class=\"hljs-function\"><span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">static<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">UnregisterHotKey<\/span>(<span class=\"hljs-params\">Keys key, KeyModifiers modifiers<\/span>)<\/span>\r\n    {\r\n        <span class=\"hljs-built_in\">int<\/span> id = key.GetHashCode();\r\n        UnregisterHotKey(IntPtr.Zero, id);\r\n    }\r\n\r\n    <span class=\"hljs-function\"><span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">static<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">ProcessHotKey<\/span>(<span class=\"hljs-params\">Message message<\/span>)<\/span>\r\n    {\r\n        <span class=\"hljs-keyword\">if<\/span> (message.Msg == WM_HOTKEY)\r\n        {\r\n            Keys key = (Keys)(((<span class=\"hljs-built_in\">int<\/span>)message.LParam &gt;&gt; <span class=\"hljs-number\">16<\/span>) &amp; <span class=\"hljs-number\">0xFFFF<\/span>);\r\n            KeyModifiers modifiers = (KeyModifiers)((<span class=\"hljs-built_in\">int<\/span>)message.LParam &amp; <span class=\"hljs-number\">0xFFFF<\/span>);\r\n            HotKeyPressed?.Invoke(<span class=\"hljs-literal\">null<\/span>, <span class=\"hljs-keyword\">new<\/span> HotKeyEventArgs(key, modifiers));\r\n        }\r\n    }\r\n}\r\n\r\n<span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title\">HotKeyEventArgs<\/span> : <span class=\"hljs-title\">EventArgs<\/span>\r\n{\r\n    <span class=\"hljs-keyword\">public<\/span> Keys Key { <span class=\"hljs-keyword\">get<\/span>; <span class=\"hljs-keyword\">private<\/span> <span class=\"hljs-keyword\">set<\/span>; }\r\n    <span class=\"hljs-keyword\">public<\/span> KeyModifiers Modifiers { <span class=\"hljs-keyword\">get<\/span>; <span class=\"hljs-keyword\">private<\/span> <span class=\"hljs-keyword\">set<\/span>; }\r\n\r\n    <span class=\"hljs-function\"><span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-title\">HotKeyEventArgs<\/span>(<span class=\"hljs-params\">Keys key, KeyModifiers modifiers<\/span>)<\/span>\r\n    {\r\n        Key = key;\r\n        Modifiers = modifiers;\r\n    }\r\n}\r\n\r\n[<span class=\"hljs-meta\">Flags<\/span>]\r\n<span class=\"hljs-built_in\">enum<\/span> KeyModifiers\r\n{\r\n    None = <span class=\"hljs-number\">0<\/span>,\r\n    Alt = <span class=\"hljs-number\">1<\/span>,\r\n    Control = <span class=\"hljs-number\">2<\/span>,\r\n    Shift = <span class=\"hljs-number\">4<\/span>,\r\n    Windows = <span class=\"hljs-number\">8<\/span>\r\n}\r\n\r\n<span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title\">Program<\/span> : <span class=\"hljs-title\">Form<\/span>\r\n{\r\n    <span class=\"hljs-function\"><span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-title\">Program<\/span>()<\/span>\r\n    {\r\n        HotKeyManager.RegisterHotKey(Keys.F1, KeyModifiers.Control);\r\n        HotKeyManager.HotKeyPressed += HotKeyManager_HotKeyPressed;\r\n    }\r\n\r\n    <span class=\"hljs-function\"><span class=\"hljs-keyword\">private<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">HotKeyManager_HotKeyPressed<\/span>(<span class=\"hljs-params\"><span class=\"hljs-built_in\">object<\/span> sender, HotKeyEventArgs e<\/span>)<\/span>\r\n    {\r\n        <span class=\"hljs-keyword\">if<\/span> (e.Key == Keys.F1 &amp;&amp; e.Modifiers == KeyModifiers.Control)\r\n        {\r\n            Console.WriteLine(<span class=\"hljs-string\">\"Hotkey pressed: \"<\/span> + e.Key.ToString() + <span class=\"hljs-string\">\" + \"<\/span> + e.Modifiers.ToString());\r\n        }\r\n    }\r\n\r\n    <span class=\"hljs-function\"><span class=\"hljs-keyword\">protected<\/span> <span class=\"hljs-keyword\">override<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">WndProc<\/span>(<span class=\"hljs-params\"><span class=\"hljs-keyword\">ref<\/span> Message message<\/span>)<\/span>\r\n    {\r\n        HotKeyManager.ProcessHotKey(message);\r\n        <span class=\"hljs-keyword\">base<\/span>.WndProc(<span class=\"hljs-keyword\">ref<\/span> message);\r\n    }\r\n\r\n    <span class=\"hljs-function\"><span class=\"hljs-keyword\">static<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">Main<\/span>(<span class=\"hljs-params\"><span class=\"hljs-built_in\">string<\/span>[] args<\/span>)<\/span>\r\n    {\r\n        Application.Run(<span class=\"hljs-keyword\">new<\/span> Program());\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u3001\u307e\u305aHotKeyManager\u3068\u3044\u3046\u30af\u30e9\u30b9\u3092\u5b9a\u7fa9\u3057\u3066\u304a\u308a\u3001\u3053\u306e\u30af\u30e9\u30b9\u306fuser32.dll\u30e9\u30a4\u30d6\u30e9\u30ea\u5185\u306eRegisterHotKey\u3001UnregisterHotKey\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u30db\u30c3\u30c8\u30ad\u30fc\u3092\u767b\u9332\u3001\u767b\u9332\u89e3\u9664\u3057\u307e\u3059\u3002\u3053\u306e\u30af\u30e9\u30b9\u306f\u3001\u30db\u30c3\u30c8\u30ad\u30fc\u30a4\u30d9\u30f3\u30c8\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306eHotKeyPressed\u30a4\u30d9\u30f3\u30c8\u3068HotKeyEventArgs\u30af\u30e9\u30b9\u3082\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Program\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u5185\u306b\u304a\u3044\u3066\u3001\u30db\u30c3\u30c8\u30ad\u30fc\uff08Ctrl + F1\uff09\u3092\u767b\u9332\u3057\u3001HotKeyPressed\u30a4\u30d9\u30f3\u30c8\u3092\u8cfc\u8aad\u3057\u3066\u3044\u307e\u3059\u3002\u30db\u30c3\u30c8\u30ad\u30fc\u304c\u62bc\u4e0b\u3055\u308c\u308b\u3068\u3001HotKeyManager_HotKeyPressed\u30e1\u30bd\u30c3\u30c9\u304c\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>WndProc\u30e1\u30bd\u30c3\u30c9\u5185\u3067\u3001\u30db\u30c3\u30c8\u30ad\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306bHotKeyManager\u30af\u30e9\u30b9\u306eProcessHotKey\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001Main\u30e1\u30bd\u30c3\u30c9\u3067\u306f\u3001Form\u3092\u7d99\u627f\u3057\u305fWindows\u30d5\u30a9\u30fc\u30e0\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3057\u3066\u304a\u308a\u3001\u305d\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306b\u3066Program\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u5f8c\u3001Ctrl + F1\u30ad\u30fc\u3092\u62bc\u4e0b\u3059\u308b\u3068\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u300cHotkey pressed: F1 + Control\u300d\u3068\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>C#\u3067\u306f\u3001User32.dll\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u3042\u308bRegisterHotKey\u95a2\u6570\u3092\u7528\u3044\u3066\u30db\u30c3\u30c8\u30ad\u30fc\u3092\u767b\u9332\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306b\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002 using System; using System.Runtime.InteropS [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-78858","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-61"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>C# \u306e RegisterHotKey \u3092\u4f7f\u7528\u3057\u305f\u30db\u30c3\u30c8\u30ad\u30fc\u767b\u9332\u306e\u5b9f\u88c5\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"C# \u306e RegisterHotKey \u3092\u4f7f\u7528\u3057\u305f\u30db\u30c3\u30c8\u30ad\u30fc\u767b\u9332\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/c-\u306e-registerhotkey-\u3092\u4f7f\u7528\u3057\u305f\u30db\u30c3\u30c8\u30ad\u30fc\u767b\u9332\u306e\u5b9f\u88c5\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C# \u306e RegisterHotKey \u3092\u4f7f\u7528\u3057\u305f\u30db\u30c3\u30c8\u30ad\u30fc\u767b\u9332\u306e\u5b9f\u88c5\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"C# \u306e RegisterHotKey \u3092\u4f7f\u7528\u3057\u305f\u30db\u30c3\u30c8\u30ad\u30fc\u767b\u9332\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/c-\u306e-registerhotkey-\u3092\u4f7f\u7528\u3057\u305f\u30db\u30c3\u30c8\u30ad\u30fc\u767b\u9332\u306e\u5b9f\u88c5\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-20T11:23:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-11T19:13:27+00:00\" \/>\n<meta name=\"author\" content=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"6\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%ae-registerhotkey-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9f%e3%83%9b%e3%83%83%e3%83%88%e3%82%ad%e3%83%bc%e7%99%bb%e9%8c%b2%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%ae-registerhotkey-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9f%e3%83%9b%e3%83%83%e3%83%88%e3%82%ad%e3%83%bc%e7%99%bb%e9%8c%b2%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/\",\"name\":\"C# \u306e RegisterHotKey \u3092\u4f7f\u7528\u3057\u305f\u30db\u30c3\u30c8\u30ad\u30fc\u767b\u9332\u306e\u5b9f\u88c5\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-20T11:23:26+00:00\",\"dateModified\":\"2025-08-11T19:13:27+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27\"},\"description\":\"C# \u306e RegisterHotKey \u3092\u4f7f\u7528\u3057\u305f\u30db\u30c3\u30c8\u30ad\u30fc\u767b\u9332\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%ae-registerhotkey-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9f%e3%83%9b%e3%83%83%e3%83%88%e3%82%ad%e3%83%bc%e7%99%bb%e9%8c%b2%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%ae-registerhotkey-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9f%e3%83%9b%e3%83%83%e3%83%88%e3%82%ad%e3%83%bc%e7%99%bb%e9%8c%b2%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%ae-registerhotkey-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9f%e3%83%9b%e3%83%83%e3%83%88%e3%82%ad%e3%83%bc%e7%99%bb%e9%8c%b2%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C# \u306e RegisterHotKey \u3092\u4f7f\u7528\u3057\u305f\u30db\u30c3\u30c8\u30ad\u30fc\u767b\u9332\u306e\u5b9f\u88c5\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27\",\"name\":\"\u82bd\u4f9d, \u96e8\u591c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"caption\":\"\u82bd\u4f9d, \u96e8\u591c\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%ae-registerhotkey-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9f%e3%83%9b%e3%83%83%e3%83%88%e3%82%ad%e3%83%bc%e7%99%bb%e9%8c%b2%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"C# \u306e RegisterHotKey \u3092\u4f7f\u7528\u3057\u305f\u30db\u30c3\u30c8\u30ad\u30fc\u767b\u9332\u306e\u5b9f\u88c5\u65b9\u6cd5 - Blog - Silicon Cloud","description":"C# \u306e RegisterHotKey \u3092\u4f7f\u7528\u3057\u305f\u30db\u30c3\u30c8\u30ad\u30fc\u767b\u9332\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/c-\u306e-registerhotkey-\u3092\u4f7f\u7528\u3057\u305f\u30db\u30c3\u30c8\u30ad\u30fc\u767b\u9332\u306e\u5b9f\u88c5\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"C# \u306e RegisterHotKey \u3092\u4f7f\u7528\u3057\u305f\u30db\u30c3\u30c8\u30ad\u30fc\u767b\u9332\u306e\u5b9f\u88c5\u65b9\u6cd5","og_description":"C# \u306e RegisterHotKey \u3092\u4f7f\u7528\u3057\u305f\u30db\u30c3\u30c8\u30ad\u30fc\u767b\u9332\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/c-\u306e-registerhotkey-\u3092\u4f7f\u7528\u3057\u305f\u30db\u30c3\u30c8\u30ad\u30fc\u767b\u9332\u306e\u5b9f\u88c5\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-20T11:23:26+00:00","article_modified_time":"2025-08-11T19:13:27+00:00","author":"\u82bd\u4f9d, \u96e8\u591c","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u82bd\u4f9d, \u96e8\u591c","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"6\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%ae-registerhotkey-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9f%e3%83%9b%e3%83%83%e3%83%88%e3%82%ad%e3%83%bc%e7%99%bb%e9%8c%b2%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%ae-registerhotkey-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9f%e3%83%9b%e3%83%83%e3%83%88%e3%82%ad%e3%83%bc%e7%99%bb%e9%8c%b2%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/","name":"C# \u306e RegisterHotKey \u3092\u4f7f\u7528\u3057\u305f\u30db\u30c3\u30c8\u30ad\u30fc\u767b\u9332\u306e\u5b9f\u88c5\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-20T11:23:26+00:00","dateModified":"2025-08-11T19:13:27+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27"},"description":"C# \u306e RegisterHotKey \u3092\u4f7f\u7528\u3057\u305f\u30db\u30c3\u30c8\u30ad\u30fc\u767b\u9332\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%ae-registerhotkey-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9f%e3%83%9b%e3%83%83%e3%83%88%e3%82%ad%e3%83%bc%e7%99%bb%e9%8c%b2%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%ae-registerhotkey-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9f%e3%83%9b%e3%83%83%e3%83%88%e3%82%ad%e3%83%bc%e7%99%bb%e9%8c%b2%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%ae-registerhotkey-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9f%e3%83%9b%e3%83%83%e3%83%88%e3%82%ad%e3%83%bc%e7%99%bb%e9%8c%b2%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"C# \u306e RegisterHotKey \u3092\u4f7f\u7528\u3057\u305f\u30db\u30c3\u30c8\u30ad\u30fc\u767b\u9332\u306e\u5b9f\u88c5\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27","name":"\u82bd\u4f9d, \u96e8\u591c","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","caption":"\u82bd\u4f9d, \u96e8\u591c"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%ae-registerhotkey-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9f%e3%83%9b%e3%83%83%e3%83%88%e3%82%ad%e3%83%bc%e7%99%bb%e9%8c%b2%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/78858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=78858"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/78858\/revisions"}],"predecessor-version":[{"id":183767,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/78858\/revisions\/183767"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=78858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=78858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=78858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}