Menu

Shortcut Mapper bug

JM
2007-10-08
2012-11-13
  • JM

    JM - 2007-10-08

    I've been having this issue for the past 2 or 3 versions (now using 4.3) but under my Shortcut Mapper #29 & 30 show no NAME but do have SHORTCUTS (Ctrl+Shift_TAB & Ctrl+TAB).

    I don't mind the no name part, but when I try to change these to something else (like Ctrl+PgUp & Ctrl+PgDn) it works for the current session but not after an exit & restart.

    I'm going to go out on a limb here and assume the problem is something w/my system and NOT the software - does anybody have suggestions on where I should start poking to figure this thing out?

    Thanks.

       Jon-Mikel

     
    • JM

      JM - 2008-02-12

      OK - I have a workaround.

      I found the IDC_PREV_DOC (50003) and IDC_NEXT_DOC (50004) definitions in the PowerEditr\src\resource.h file and based on how they seem to be used in the Notepad_plus.cpp file I THINK that the following will do the trick.

      MANUALLY edit the shortcuts.xml file (the one in your \Documents and settings\<user id>\Application Data\Notepad++ folder, if you have one) and add the following after the </macros> line.
          <InternalCommands>
              <Shortcut name="Prev Tab" id="50003" Ctrl="yes" Alt="no" Shift="no" Key="33" />
              <Shortcut name="Next Tab" id="50004" Ctrl="yes" Alt="no" Shift="no" Key="34" />
          </InternalCommands>

      This worked for me - hopefully it will work for you too!  (And, yes, you can edit it WITH Notepad++ - just be sure to restart NPP for the changes to be loaded.)

        Jon-Mikel

       
    • Nobody/Anonymous

      New version of Notepad++ will have this fixed, afaik.

       
    • Joachim Lous

      Joachim Lous - 2007-10-16

      "I'm going to go out on a limb here and assume the problem is something w/my system and NOT the software"

      Not very likely.  I have the exact same problem.

      "does anybody have suggestions on where I should start poking to figure this thing out?"

      The source?

       
    • Nobody/Anonymous

      Yes, I have same problem. And I am like you, I am used to do with Ctrl+PgUp and Ctrl+PgDn, and I want to change them. But I want to change #37(macro recording), too. But it does not have "Name", and it disapear every session. I posted the question couple month ago, but I guess Don is too busy and did not reply to the message.

      Anyway, I don't have a fix but I am using AutoHotKey to re-map whatever I want to re-map for that session.
      http://www.autohotkey.com/

      Below is the script to re-map #29, #30, and #37, make sure you do this as soon as you start N++ :
      #----- start ---------

      WinWait, Notepad++ - new 1,
      IfWinNotActive, Notepad++ - new 1, , WinActivate, Notepad++ - new 1,
      WinWaitActive, Notepad++ - new 1,
      MouseClick, left,  284,  26
      Sleep, 100
      MouseClick, left,  286,  89
      Sleep, 100
      WinWait, Shortcut mapper,
      IfWinNotActive, Shortcut mapper, , WinActivate, Shortcut mapper,
      WinWaitActive, Shortcut mapper,
      MouseClick, left,  576,  481
      Sleep, 100
      MouseClick, left,  327,  129
      MouseClick, left,  327,  129
      Sleep, 100
      WinWait, Shortcut,
      IfWinNotActive, Shortcut, , WinActivate, Shortcut,
      WinWaitActive, Shortcut,
      MouseClick, left,  101,  99
      Sleep, 100
      MouseClick, left,  254,  93
      Sleep, 100
      MouseClick, left,  218,  204
      Sleep, 100
      MouseClick, left,  109,  154
      Sleep, 100
      WinWait, Shortcut mapper,
      IfWinNotActive, Shortcut mapper, , WinActivate, Shortcut mapper,
      WinWaitActive, Shortcut mapper,
      MouseClick, left,  327,  151
      MouseClick, left,  327,  151
      Sleep, 100
      WinWait, Shortcut,
      IfWinNotActive, Shortcut, , WinActivate, Shortcut,
      WinWaitActive, Shortcut,
      MouseClick, left,  252,  96
      Sleep, 100
      MouseClick, left,  214,  189
      Sleep, 100
      MouseClick, left,  112,  148
      Sleep, 100
      WinWait, Shortcut mapper,
      IfWinNotActive, Shortcut mapper, , WinActivate, Shortcut mapper,
      WinWaitActive, Shortcut mapper,
      MouseClick, left,  309,  289
      MouseClick, left,  309,  289
      Sleep, 100
      WinWait, Shortcut,
      IfWinNotActive, Shortcut, , WinActivate, Shortcut,
      WinWaitActive, Shortcut,
      MouseClick, left,  54,  74
      Sleep, 100
      MouseClick, left,  213,  90
      Sleep, 100
      MouseClick, left,  197,  362
      Sleep, 100
      MouseClick, left,  101,  153
      Sleep, 100
      WinWait, Shortcut mapper,
      IfWinNotActive, Shortcut mapper, , WinActivate, Shortcut mapper,
      WinWaitActive, Shortcut mapper,
      MouseClick, left,  306,  547
      Sleep, 100

      #----- end ---------

       
    • Nobody/Anonymous

      Above script also changes below:

      - #37 macro recording : "Shift+F1"
      - #38 macro playback : "Shift+F2"

       
MongoDB Logo MongoDB