{"id":183,"date":"2017-08-05T08:42:51","date_gmt":"2017-08-04T23:42:51","guid":{"rendered":"https:\/\/jidouka.work\/?p=183"},"modified":"2017-08-05T08:54:47","modified_gmt":"2017-08-04T23:54:47","slug":"gui%e6%93%8d%e4%bd%9c%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b-powershell","status":"publish","type":"post","link":"https:\/\/jidouka.work\/?p=183","title":{"rendered":"GUI\u64cd\u4f5c\u3092\u81ea\u52d5\u5316\u3059\u308b [PowerShell]"},"content":{"rendered":"<p>PowerShell\u3067\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u4e2d\u3067\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u30b9\u30c8\u30ed\u30fc\u30af\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3092\u5229\u7528\u3059\u308c\u3070\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u3088\u3046\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u64cd\u4f5c\u3067\u3082\u57fa\u672c\u7684\u306b\u81ea\u52d5\u5316\u304c\u3067\u304d\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306e\u30b3\u30fc\u30c9\u3067\u306f\u30e1\u30e2\u5e33\u3092\u5b9f\u884c\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u3092\u6253\u3061\u8fbc\u307f\u4fdd\u5b58\u3059\u308b\u3068\u3044\u3046\u52d5\u4f5c\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30b3\u30fc\u30c9<\/h2>\n<figure class=\"jd-code\"><button type=\"button\" class=\"jd-code-copy\">\u30b3\u30d4\u30fc<\/button><pre><code class=\"language-powershell\">#Windows\u30ad\u30fc\u3092\u62bc\u3059\r\n[System.Windows.Forms.SendKeys]::SendWait(&quot;^{ESC}&quot;)\r\n\r\n#&quot;run&quot;\u3068\u5165\u529b\r\n[System.Windows.Forms.SendKeys]::SendWait(&quot;run&quot;)\r\nStart-Sleep -s 1\r\n\r\n#Enter\u30ad\u30fc\u3092\u62bc\u3059\r\n[System.Windows.Forms.SendKeys]::SendWait(&quot;{ENTER}&quot;)\r\nStart-Sleep -s 1\r\n\r\n#&quot;notepad&quot;\u3068\u5165\u529b\r\n[System.Windows.Forms.SendKeys]::SendWait(&quot;notepad&quot;)\r\n\r\n[System.Windows.Forms.SendKeys]::SendWait(&quot;{ENTER}&quot;)\r\nStart-Sleep -s 1\r\n#&quot;This is a test script&quot;\u3068\u5165\u529b\r\n[System.Windows.Forms.SendKeys]::SendWait(&quot;This is a test script.&quot;)\r\n\r\n#Control+S\u30ad\u30fc\u3092\u62bc\u3059\r\n[System.Windows.Forms.SendKeys]::SendWait(&quot;^s&quot;)\r\nStart-Sleep -s 1\r\n[System.Windows.Forms.SendKeys]::SendWait(&quot;newtext.txt&quot;)\r\n[System.Windows.Forms.SendKeys]::SendWait(&quot;{ENTER}&quot;)\r\nStart-Sleep -s 1\r\n\r\n#Alt+F4\u30ad\u30fc\u3092\u62bc\u3059\r\n[System.Windows.Forms.SendKeys]::SendWait(&quot;%{F4}&quot;)<\/code><\/pre><\/figure>\n<h2>\u8aac\u660e<\/h2>\n<p>\u305f\u3060\u5358\u306bSendKeys\u3067\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u30ad\u30fc\u3092\u6253\u3063\u3066\u3044\u308b\u3060\u3051\u306a\u306e\u3067\u975e\u5e38\u306b\u7c21\u5358\u3067\u3059\u3002<\/p>\n<p>\u30ad\u30fc\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u306b\u8aac\u660e\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/msdn.microsoft.com\/ja-jp\/library\/cc364423.aspx\">https:\/\/msdn.microsoft.com\/ja-jp\/library\/cc364423.aspx<\/a><\/p>\n<p>Windows\u30ad\u30fc\u3060\u3051\u306f\u4ed6\u306e\u30ad\u30fc\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u62bc\u305b\u306a\u3044\u305f\u3081\u3001\u6700\u521d\u3067Control+ESC\u3067\u62bc\u3057\u3066\u304b\u3089&#8221;run&#8221;\u3092\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\u64cd\u4f5c\u3092\u884c\u3063\u3066\u304b\u3089GUI\u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u308b\u307e\u3067\u306b\u591a\u5c11\u9045\u308c\u304c\u3042\u308b\u305f\u3081\u3001\u6587\u5b57\u5217\u306e\u5165\u529b\u3092\u884c\u3046\u3088\u3046\u306a\u5834\u9762\u3067\u306f\u30011\u79d2\u5f85\u3063\u3066\u304b\u3089\u5165\u529b\u3092\u958b\u59cb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u52d5\u753b<\/h2>\n<p>\u5b9f\u884c\u3057\u3066\u307f\u308b\u3068\u52d5\u4f5c\u304c\u304b\u306a\u308a\u901f\u3044\u3067\u3059\u3002<br \/>\n\u305d\u3082\u305d\u3082\u30c6\u30ad\u30b9\u30c8\u3092\u66f8\u3044\u3066\u4fdd\u5b58\u3067\u3042\u308c\u3070\u308f\u3056\u308f\u3056\u30e1\u30e2\u5e33\u3092\u5b9f\u884c\u305b\u305a\u3068\u3082PowerShell\u3060\u3051\u3067\u5b8c\u7d50\u3057\u307e\u3059\u304c\u3001\u4eca\u56de\u306f\u5b9f\u9a13\u3068\u3057\u3066\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/jidouka.work\/wp-content\/uploads\/2017\/08\/powershell_keystroke.mov\">powershell_keystroke<\/a><\/p>\n<p><video src=\"https:\/\/jidouka.work\/wp-content\/uploads\/2017\/08\/powershell_keystroke.mov\" controls><\/video><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PowerShell\u3067\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u4e2d\u3067\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u30b9\u30c8\u30ed\u30fc\u30af\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u3053\u308c\u3092\u5229\u7528\u3059\u308c\u3070 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,7],"tags":[11],"class_list":["post-183","post","type-post","status-publish","format-standard","hentry","category-powershell","category-windows","tag-gui"],"_links":{"self":[{"href":"https:\/\/jidouka.work\/index.php?rest_route=\/wp\/v2\/posts\/183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jidouka.work\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jidouka.work\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jidouka.work\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jidouka.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=183"}],"version-history":[{"count":5,"href":"https:\/\/jidouka.work\/index.php?rest_route=\/wp\/v2\/posts\/183\/revisions"}],"predecessor-version":[{"id":189,"href":"https:\/\/jidouka.work\/index.php?rest_route=\/wp\/v2\/posts\/183\/revisions\/189"}],"wp:attachment":[{"href":"https:\/\/jidouka.work\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jidouka.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jidouka.work\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}