{"id":5129,"date":"2019-02-15T18:19:25","date_gmt":"2019-02-15T18:19:25","guid":{"rendered":"https:\/\/max-drake.cc\/?p=5129"},"modified":"2019-02-15T18:19:25","modified_gmt":"2019-02-15T18:19:25","slug":"free-manager-for-custom-context-menus-in-windows","status":"publish","type":"post","link":"https:\/\/max-drake.cc\/?p=5129","title":{"rendered":"Free Manager for Custom Context Menus in Windows"},"content":{"rendered":"<p>Example of Context menu pop-outs<\/p>\n<p><img decoding=\"async\" class=\"wp-image-5131 aligncenter lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/pywincontext2-300x86.png\" alt=\"\" width=\"1207\" height=\"346\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/pywincontext2-300x86.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/pywincontext2-768x219.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/pywincontext2.png 792w\" data-sizes=\"(max-width: 1207px) 100vw, 1207px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1207px; --smush-placeholder-aspect-ratio: 1207\/346;\" \/><\/p>\n<p>Interface for setting up:<\/p>\n<p><img decoding=\"async\" class=\"wp-image-5130 aligncenter lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/pywincontext-300x182.png\" alt=\"\" width=\"1264\" height=\"766\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1264px; --smush-placeholder-aspect-ratio: 1264\/766;\" \/><\/p>\n<p><a href=\"https:\/\/github.com\/VodBox\/pyWinContext\" target=\"_blank\" rel=\"noopener\"><strong>pyWinContext<\/strong><\/a>\u00a0 is a Free Manager for Custom Context Menus in Windows. You can download the actual <a href=\"https:\/\/github.com\/VodBox\/pyWinContext\/releases\" target=\"_blank\" rel=\"noopener\"><strong>compiled .exe file here<\/strong><\/a>.<\/p>\n<p>There is a video on use case here, its not in my area of interest but you can see how useful it is:<\/p>\n<p><iframe data-src=\"https:\/\/www.youtube.com\/embed\/qUSaTCaN6lY\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" data-load-mode=\"1\"><\/iframe><\/p>\n<p>After uploading and starting it up I went through the basic tutorial&#8230;. then stopped.<\/p>\n<p>Basic tutorial<a href=\"https:\/\/github.com\/VodBox\/pyWinContext#tutorial\" target=\"_blank\" rel=\"noopener\"><strong> here<\/strong><\/a>. If you select a text file, right click on file\u00a0 and new choice &#8220;List File Details&#8221; added, if selected then it runs the code. Code in the example:<\/p>\n<p><em>echo Name: %~n1<\/em><br \/>\n<em>echo Filetype: %~x1<\/em><br \/>\n<em>echo File Size: %~z1<\/em><br \/>\n<em>pause<\/em><\/p>\n<p><img decoding=\"async\" class=\"wp-image-5138 aligncenter lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/im1-300x141.png\" alt=\"\" width=\"1291\" height=\"607\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/im1-300x141.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/im1.png 381w\" data-sizes=\"(max-width: 1291px) 100vw, 1291px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1291px; --smush-placeholder-aspect-ratio: 1291\/607;\" \/> <img decoding=\"async\" class=\"wp-image-5139 aligncenter lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/im1a-300x157.png\" alt=\"\" width=\"1103\" height=\"577\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/im1a-300x157.png 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/im1a-768x402.png 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/im1a.png 979w\" data-sizes=\"(max-width: 1103px) 100vw, 1103px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1103px; --smush-placeholder-aspect-ratio: 1103\/577;\" \/><\/p>\n<p>There was only the one simple tutorial, and the only other resource I&#8217;ve seen is the Video above. So you have to work out your own need and code for that.<\/p>\n<p>I can see the free <a href=\"https:\/\/www.downloadcrew.com\/article\/19531-batchrun\" target=\"_blank\" rel=\"noopener\"><strong>Batchrun<\/strong><\/a> programme, which I discuss in this post <a href=\"https:\/\/max-drake.cc\/2019\/01\/21\/automation-in-windows-free-tools\/\" target=\"_blank\" rel=\"noopener\"><strong>Automation in Windows free tools<\/strong><\/a> could be useful, as one of the features that the programme has is AFTER executing a command\/batch file it allows you to connect another Batch file onto the end of it, so increasing its functionality.<\/p>\n<p>Also in the post above for Batchrun is a piece on using PowerShell. There may be a way of using a batchfile to activate and run a PowerShell Script. I was a bit disillusioned by PowerShell when the first thing I wanted to do with it (login to my Web Blog in Firefox) ended up being difficult and I had to use a\u00a0 pretty crude method to do so.<\/p>\n<h3>Filetypes<\/h3>\n<p>When looking at the filetypes, of which there is a very long and impressive list, I noted that there are not any Revit or DWG type files.<\/p>\n<p>It says you can add filetypes in the read.me file on Github. I tried adding these on another PC and they didn&#8217;t show up, but I just did that same test here and the .RVT filetype was added.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-5140 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/2019-02-16-09_37_00-Edit-Post-\u2039-Vast-\u2014-WordPress-300x185.jpg\" alt=\"\" width=\"1061\" height=\"654\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/2019-02-16-09_37_00-Edit-Post-\u2039-Vast-\u2014-WordPress-300x185.jpg 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/2019-02-16-09_37_00-Edit-Post-\u2039-Vast-\u2014-WordPress-768x473.jpg 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/2019-02-16-09_37_00-Edit-Post-\u2039-Vast-\u2014-WordPress.jpg 836w\" data-sizes=\"(max-width: 1061px) 100vw, 1061px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1061px; --smush-placeholder-aspect-ratio: 1061\/654;\" \/> <img decoding=\"async\" class=\"alignnone wp-image-5141 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/2019-02-16-09_39_23-Edit-Post-\u2039-Vast-\u2014-WordPress-300x189.jpg\" alt=\"\" width=\"1029\" height=\"648\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/2019-02-16-09_39_23-Edit-Post-\u2039-Vast-\u2014-WordPress-300x189.jpg 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/2019-02-16-09_39_23-Edit-Post-\u2039-Vast-\u2014-WordPress-768x483.jpg 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/2019-02-16-09_39_23-Edit-Post-\u2039-Vast-\u2014-WordPress-200x125.jpg 200w, https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/2019-02-16-09_39_23-Edit-Post-\u2039-Vast-\u2014-WordPress.jpg 833w\" data-sizes=\"(max-width: 1029px) 100vw, 1029px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1029px; --smush-placeholder-aspect-ratio: 1029\/648;\" \/><\/p>\n<p><strong>Resources<\/strong> that VodBox provides in link to page on variables to use:<\/p>\n<p><em>Variables and parameters are handled directly by the batch interpreter in Windows. You can find a helpful list of these <\/em><a href=\"https:\/\/ss64.com\/nt\/syntax-args.html\" target=\"_blank\" rel=\"nofollow noopener\"><strong><em>here<\/em><\/strong><\/a><\/p>\n<h2>End comment<\/h2>\n<p>Thank you\u00a0 VodBox for an intriguing tool.<\/p>\n<p>I wanted to do a quick post on this so that I have the information to hand. I can see potential for using this to automate some simple processes but at this moment do not have any that aren&#8217;t covered by my other automation tools that I have setup.<\/p>\n<p>I like the idea of pop-outs in the right click on files. Its interesting in that if the filetype is not one that is associated with a command then the option does not show up in the right click menu.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Example of Context menu pop-outs Interface for setting up: pyWinContext\u00a0 is a Free Manager for Custom Context Menus in Windows. You can download the actual compiled .exe file here. There is a video on use case here, its not in my area of interest but you can see how useful it is: After uploading and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5141,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[204,42],"tags":[48,294],"class_list":["post-5129","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-automation","category-productivity","tag-productivity","tag-windows-context-menu"],"featured_image_src":"https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/2019-02-16-09_39_23-Edit-Post-\u2039-Vast-\u2014-WordPress.jpg","featured_image_src_square":"https:\/\/max-drake.cc\/wp-content\/uploads\/2019\/02\/2019-02-16-09_39_23-Edit-Post-\u2039-Vast-\u2014-WordPress.jpg","author_info":{"display_name":"Max Drake","author_link":"https:\/\/max-drake.cc\/?author=1"},"_links":{"self":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/posts\/5129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5129"}],"version-history":[{"count":0,"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/posts\/5129\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/media\/5141"}],"wp:attachment":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}