{"id":6982,"date":"2022-11-28T16:00:00","date_gmt":"2022-11-28T15:00:00","guid":{"rendered":"https:\/\/www.razumny.no\/?p=6982"},"modified":"2022-11-14T15:46:59","modified_gmt":"2022-11-14T14:46:59","slug":"notepad-the-macro-recorder","status":"publish","type":"post","link":"https:\/\/www.razumny.no\/?p=6982","title":{"rendered":"Notepad++: the Macro recorder"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In my <a href=\"https:\/\/www.razumny.no\/?p=6979\">last post<\/a>, I detailed how I solved the challenge of finding all the group members of a set of groups containing more than five hundred groups. While the Powershell script was very effective, I needed one more tool in order to really make quick work of it all; <a href=\"https:\/\/www.razumny.no\/?p=5275\" data-type=\"post\" data-id=\"5275\">Notepad++.<\/a><\/p><!--more-->\n\n\n\n\n\n<p class=\"wp-block-paragraph\">Now, I&#8217;ve written about Notepad++ previously, but I&#8217;ve never really dived into any of the more advanced features. One of these, the Script recorder, is amazing for tasks such as this, where you&#8217;ve got a massive list of group names, and need to perform the exact same sequence of actions for each of them. In this case, I needed to three characters and a line shift, as well as delete a line shift. Here&#8217;s how you do it:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Paste your list into Notepad++<\/li><li>Go to Macro &gt; Start recording<\/li><li>Do what you want the Macro to do<\/li><li>Go to Macro &gt; Stop recording<\/li><li>Use the Macro playback option (<code>Ctrl+Shift+P<\/code>) as many times as needed (I simply held the key combination down until it was all done)<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">This took what would have been a highly repetitive exercise, and completed it in less than a minute.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my last post, I detailed how I solved the challenge of finding all the group members of a set of groups containing more than five hundred groups. While the Powershell script was very effective, I needed one more tool in order to really make quick work of it all; Notepad++.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"The Macro function in Notepad++ is an outstanding way to quickly perform repetitive tasks - here's how I use it.","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[615,677],"tags":[1560,1190,128],"class_list":["post-6982","post","type-post","status-publish","format-standard","hentry","category-how-to-2","category-tips-tricks","tag-macro","tag-notepad-2","tag-notepad"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p2ukSU-1OC","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":43,"url":"https:\/\/www.razumny.no\/?p=43","url_meta":{"origin":6982,"position":0},"title":"Better Notepad","author":"Aleksander Nordgarden-R\u00f8dner","date":"06\/06\/2008","format":false,"excerpt":"I write a lot of different things, from text for my blog, to content for my website to various kinds of code and script. For a long time I simply used notepad, it was most of what I needed, and it did the job. A while back, I discovered a\u2026","rel":"","context":"In &quot;Software&quot;","block_context":{"text":"Software","link":"https:\/\/www.razumny.no\/?cat=13"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2924,"url":"https:\/\/www.razumny.no\/?p=2924","url_meta":{"origin":6982,"position":1},"title":"TBT: Better Notepad","author":"Aleksander Nordgarden-R\u00f8dner","date":"07\/05\/2015","format":false,"excerpt":"This post originally ran in June 2008. I am reposting it now, as part of my throwback thursday project, to\u00a0give some of my older quality posts some love.\u00a0To this day, Notepad++ is my default notepad app for use on Windows. It is regularly updated, and still works very well. I\u2026","rel":"","context":"In &quot;TBT&quot;","block_context":{"text":"TBT","link":"https:\/\/www.razumny.no\/?cat=894"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5275,"url":"https:\/\/www.razumny.no\/?p=5275","url_meta":{"origin":6982,"position":2},"title":"Software Spotlight: Notepad++","author":"Aleksander Nordgarden-R\u00f8dner","date":"23\/09\/2019","format":false,"excerpt":"Whenever I get a new (Windows) computer, one of the very first pieces of software I download and install is Notepad++. It gets used for just about anything, and everything, and takes the concept of Notepad, a simple text editor, up a few hundred notches. I write a lot of\u2026","rel":"","context":"In &quot;Software&quot;","block_context":{"text":"Software","link":"https:\/\/www.razumny.no\/?cat=13"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":47,"url":"https:\/\/www.razumny.no\/?p=47","url_meta":{"origin":6982,"position":3},"title":"Software I cannot live without","author":"Aleksander Nordgarden-R\u00f8dner","date":"16\/06\/2008","format":false,"excerpt":"Almost anyone that works with computers collect a few programs they can't live without. For me, there are a few of them, and here they are: 1 - Notepad++ I've written about Notepad++ earlier, and there's not much more to say other than the fact that it's the best simple\u2026","rel":"","context":"In &quot;Firefox&quot;","block_context":{"text":"Firefox","link":"https:\/\/www.razumny.no\/?cat=14"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3929,"url":"https:\/\/www.razumny.no\/?p=3929","url_meta":{"origin":6982,"position":4},"title":"How I blog &#8211; software","author":"Aleksander Nordgarden-R\u00f8dner","date":"23\/01\/2017","format":false,"excerpt":"A few weeks ago, I wrote about my process around blogging, and how I get from ideas in my head to finished posts. A reader emailed me,\u00a0asking what software I use, other than WordPress. The truth is, I don't use a single piece of software, for a number of reasons.\u00a0First,\u2026","rel":"","context":"In &quot;Opinion&quot;","block_context":{"text":"Opinion","link":"https:\/\/www.razumny.no\/?cat=521"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5270,"url":"https:\/\/www.razumny.no\/?p=5270","url_meta":{"origin":6982,"position":5},"title":"PowerShell: Building a script to find all members of several given groups","author":"Aleksander Nordgarden-R\u00f8dner","date":"16\/09\/2019","format":false,"excerpt":"Last week, I showed you how I find all the nested members of a specified group. When we get requests for such audits, however, they usually specify doing so for a number of groups. Now, we could of course do it, one group at a time, adding information to our\u2026","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/www.razumny.no\/?cat=820"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts\/6982","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6982"}],"version-history":[{"count":3,"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts\/6982\/revisions"}],"predecessor-version":[{"id":7028,"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts\/6982\/revisions\/7028"}],"wp:attachment":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6982"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6982"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}