Community
    • Login

    Macro with Encoding... Char Sets... OEM-US Does Nothing

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 312 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TheSimArchitectT
      TheSimArchitect
      last edited by

      Hi! I recorded a macro to change the Character Set used to OEM-US so I don’t have to navigate the menu each time I am editing a file with such encoding, but the macro does nothing.

      This is the macro recorded inside the file shortcuts.xml:

          <Macros>
              <Macro name="OEM US" Ctrl="no" Alt="no" Shift="no" Key="0">
                  <Action type="0" message="2422" wParam="0" lParam="0" sParam="" />
                  <Action type="0" message="2325" wParam="0" lParam="0" sParam="" />
                  <Action type="0" message="2422" wParam="0" lParam="0" sParam="" />
                  <Action type="0" message="2325" wParam="0" lParam="0" sParam="" />
              </Macro>
          </Macros>
      
      

      Does anybody know what could be wrong? I didn’t associate a shortcut because I am happy to run it by clicking on Macro… OEM US.

      I don’t want to change the default encoding. I use Code Page 437 only when editing batch scripts. Thanks for any idea, even being able to bookmark that option would be good too, so I don’t have to spend half minute each time I open a file, it’s ok for a single file but not when you have a dozen!

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @TheSimArchitect
        last edited by Alan Kilborn

        @TheSimArchitect

        Maybe try:

                <Macro name="OEM US" Ctrl="no" Alt="no" Shift="no" Key="0">
                    <Action type="2" message="0" wParam="45044" lParam="0" sParam="" />
                </Macro>
        
        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors