Community
    • Login

    Help Me mouse cursor automatically Error.

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    7 Posts 2 Posters 255 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.
    • Vuvanvui VuiV
      Vuvanvui Vui
      last edited by

      Hello, I used to use the old notepad 6.5 for my work, now I switched to the new one because I need many new features but I encountered the following error:
      My old notepad: when I perform a macro $% at the beginning of the line, when I use the down arrow on the keyboard, the mouse cursor automatically jumps to the beginning of the line, it only works when using the macro at the beginning of the line
      My New notepad 8.5: also performs the old operation = the old macro is pushed forward but now the mouse cursor when going down to the next line is at position 3 and not at the beginning of the line like my old version
      I don’t think this is due to the macro, if it is due to the macro, my new notepad still uses the macro from the old notepad, I think it may be because the behavior of the mouse cursor is different, is there any way to help me get back to the old one?, this makes me very uncomfortable.
      Thanks
      EX:
      c5bd6782-8674-41b5-b87f-df4132a08fb8-image.png

      Vuvanvui VuiV PeterJonesP 2 Replies Last reply Reply Quote 0
      • Vuvanvui VuiV
        Vuvanvui Vui @Vuvanvui Vui
        last edited by

        @Vuvanvui-Vui said in Help Me mouse cursor automatically Error.:

        Hello, I used to use the old notepad 6.5 for my work, now I switched to the new one because I need many new features but I encountered the following error:
        My old notepad: when I perform a macro $% at the beginning of the line, when I use the down arrow on the keyboard, the mouse cursor automatically jumps to the beginning of the line, it only works when using the macro at the beginning of the line
        My New notepad 8.5: also performs the old operation = the old macro is pushed forward but now the mouse cursor when going down to the next line is at position 3 and not at the beginning of the line like my old version
        I don’t think this is due to the macro, if it is due to the macro, my new notepad still uses the macro from the old notepad, I think it may be because the behavior of the mouse cursor is different, is there any way to help me get back to the old one?, this makes me very uncomfortable.
        Thanks
        EX:
        c5bd6782-8674-41b5-b87f-df4132a08fb8-image.png

        No One Can Save Me?

        PeterJonesP 1 Reply Last reply Reply Quote 0
        • PeterJonesP
          PeterJones @Vuvanvui Vui
          last edited by

          @Vuvanvui-Vui said in Help Me mouse cursor automatically Error.:

          No One Can Save Me?

          When I read your post yesterday, I didn’t understand what you were asking. Maybe others didn’t, as well.

          If you are able to add clarification, it might prompt more response.

          1 Reply Last reply Reply Quote 1
          • PeterJonesP
            PeterJones @Vuvanvui Vui
            last edited by

            @Vuvanvui-Vui said in Help Me mouse cursor automatically Error.:

            I think it may be because the behavior of the mouse cursor is different

            I just downloaded a copy of v6.5 (from 2013 – did you really wait 12 years between upgrades?! Yowsah!). I compared the typing cursor (aka, “caret”) behavior, and I couldn’t find any differences.

            If I type the HOME key then $% (to go to the start of the line and insert those characters), then do a down arrow, I end up in position 3 on the next line, whether I am in v6.5 (2013) or v8.7.5 (2025). So I don’t know why your macro had the behavior you described in the old version of Notepad++

            Since you didn’t share your macro (open %AppData%\Notepad++\shortcuts.xml, and scroll down to find the <Macro that you are running, and paste that section of the XML in your post), we cannot know exactly what commands it was sending.

            However, I would recommend just recording a new macro that does what you want, and use that macro instead of the old one.

            After re-reading your post quite a few times, I think a series of commands that would do what you want is Macro > Start Recording, then HOME then $% then HOME, then probably Macro > Stop Recording – this ends you at the start of the line where you inserted the text; if you want the down arrow to the first column of the next line as part of the macro, then after the second HOME and before Stop Recording, do a DownArrow as well. Whichever you choose, after you’ve stopped recording, Macro > Save current recorded macro and give it a name and optional keystroke (you can also use Macro > Modify Shortcut/Delete macro to delete your old copy of the macro, so they don’t conflict)

            Vuvanvui VuiV 1 Reply Last reply Reply Quote 0
            • Vuvanvui VuiV
              Vuvanvui Vui @PeterJones
              last edited by

              @PeterJones “If I type the HOME key then $% (to go to the start of the line and insert those characters), then do a down arrow, I end up in position 3 on the next line, whether I am in v6.5 (2013) or v8.7.5 (2025). So I don’t know why your macro had the behavior you described in the old version of Notepad++”
              This paragraph is exactly the difference here, the difference is instead of typing $% at the beginning of the line I use the shortcut $T, when using this shortcut, I press the down arrow if it is the old version 6.5 then the cursor immediately returns to the beginning of the next line, but the new version will not be like that. this is my macro $T, when I use this macro to the new notepad version, it only results in filling in $T without a cursor to the beginning of the line, I don’t understand, and I also found out that from notepad version >7.6.6 it will be like that,
              <Macro name=“$T” Ctrl=“no” Alt=“yes” Shift=“no” Key=“81”>
              <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“$” />
              <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“T” />
              </Macro>
              thank you for your feedback,

              PeterJonesP 1 Reply Last reply Reply Quote 0
              • PeterJonesP
                PeterJones @Vuvanvui Vui
                last edited by

                @Vuvanvui-Vui ,

                Odd. Even though the macro text insertion is supposed to be exactly equivalent to the equivalent keystrokes, the ancient v6.5 apparently treated them differently, because I can confirm your weird behavior in the ancient version. Apparently, at some point over the last decade, that bug was fixed, so the macro started behaving identically to typing the same keystrokes. (The v6.5 behavior with that macro is wrong, buggy behavior, and I am glad it’s fixed now.)

                The current behavior is correct: the macro exactly matches the manual keystroke version.

                If you want to create a new macro that takes you back to the beginning of the line, so that down-arrow after the macro takes you to the beginning of the next line, then I described how to record that macro.

                Otherwise, Notepad++ is behaving as it is designed to behave, and how any user would intuitively expect it to. (I am sorry that the buggy behavior from more than a decade ago conditioned you to the incorrect behavior. But it was incorrect then, and no one will re-introduce that bug just to make you happy.)

                Vuvanvui VuiV 1 Reply Last reply Reply Quote 1
                • Vuvanvui VuiV
                  Vuvanvui Vui @PeterJones
                  last edited by

                  @PeterJones thank you, unfortunately that bug has been fixed, but my work is very suitable for that bug, it helps me to handle it faster because if I use the macro to add HOME, it will affect my later macros, maybe I have to live with the old version, or will use the new version with many improvements but it will be more inconvenient for me, anyway thank you, I have been waiting for your reply all day

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors