Results 1 to 8 of 8
  1. #1
    3 Star Lounger
    Join Date
    Nov 2002
    Posts
    387
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Remapping short cuts (Word 2000)

    Are there any reuable tools or components that can be used to help remap short cut keys to perform a different function. I am asking this because Word and Excel have used up the key combinations for shortcuts and we are going to give our customers the option to remap shortsut keys for their session and am wondering if there are not already some reuable code or components that we could use rather than invent it.

    Thank you

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Remapping short cuts (Word 2000)

    I don't have ready-made code for you, but in Word, you have the KeyBindings collection that contains all custom keyboard shortcuts.

  3. #3
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Remapping short cuts (Word 2000)

    Hi Klaus:
    Here's what I did to test it. I created a new clean template based on a factory fresh normal.dot. In that template, I assigned Ctrl+N to FormatFont (rather than FileNew). I found that Ctrl+N would then bring up FormatFont if:
    1. I had the template open & active when I pressed Ctrl+N (which, of course, was expected).
    2. If I closed the template, Ctrl+N showed the FileNew dialog box.
    3. If I loaded the template through Tools/Templates & Add-ins, then Ctrl+N brought up the FormatFont dialog box. When I closed it, it reverted to FileNew.
    4. The same behavior as 3) above ocurred if I placed the template in the startup file.

    I tested this once before, with the attached template, where I assigned Ctrl+N to CenterPara. Would you see if you get the same results?
    Attached Files Attached Files

  4. #4
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Remapping short cuts (Word 2000)

    Hi Phil,

    > Would you see if you get the same results?

    I'd expect so.

    The default assignment (Ctrl+N = FileNew) is the "application layer", and has the lowest priority.
    No matter whether you change the shortcut in the document, the attached template, Normal.dot, or a global template, the customized shortcut will take precedence.

    But if you assign the same shortcut differently in the document, the attached template, Normal.dot, and a global template, you'll see that the latter have lower priority.

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16> Klaus

  5. #5
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Remapping short cuts (Word 2000)

    Yes, that's the way I understand it (and I was baffled by the "application layer" for a long time, too).

    BTW, putting the shortcuts in a global template may still be the better solution. Users then can still override them in their Normal.dot.
    I'm no template designer, and don't do that kind of thing much. I support some authors with custom templates that they base their documents on, and am used to define the shortcuts (which are usually specific to a certain kind of document) in those templates.

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16> Klaus

  6. #6
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Remapping short cuts (Word 2000)

    <P ID="edit" class=small>(Edited by Phil Rabichow on 17-Jan-04 10:41. to add CORRECTION)</P>Hi Jim:
    At How Word Resolves Conflicts, Microsoft says Word resolves conflicts in the following order of priority:

    1. Document itself
    2. Template attached to the active document
    3. Normal template
    4. Additional global templates in alphabetical order
    5. Add

  7. #7
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Remapping short cuts (Word 2000)

    Hi Phil,

    Perhaps programmers of (COM) add-ins may know some tricks to get their shortcuts into Normal.dot temporarily, or getting them precedence in some other way.

    I don't recall that I've ever noticed shortcuts in global templates get precedence over those in Normal.dot... you're sure about that?

    [i]P.S.: It seems to me that putting the shortcuts into the company templates (templates attached to the document) would be the easiest implementation. <font color=red>((edited: bad idea; see below))</font color=red>
    P.P.S.: If you want a whole lot of unused shortcuts, prefix keys come in handy. For example, I use "F2, A", "F2, B" ... for most of my own stuff.[i]

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16> Klaus

  8. #8
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Remapping short cuts (Word 2000)

    Hi Klaus:
    Thanks for the explanation. That is something that hadn't ocurred to me before, but probably explains why I got inconsistent results. I don't think I every understood what it meant by the application layer. Does this mean that ANY default keyboard shortcut starts in the application layer? And that it only resides in one of the other layers when you specifically assign it there?
    Thanks in advance,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •