Send Keys Class codes don't work in Office RRS feed

  • Question

  • The shortcut on the keyboard for Home/ End is Crtl + Home/ End in Office but how is the shortcut for horizontal scrolling that i can use it as Send Key class code?

    • Edited by ILT5000 Saturday, August 1, 2020 7:54 PM
    Saturday, August 1, 2020 7:52 PM

All replies

  • I found the shortcut over AHK. It's scroll lock on, left/right, scroll lock off.

    But that let the LED for the scroll lock turn on and off on the keyboard everytime. Also it works in Excel and OneNote but not in Word.

    How does Microsoft implements it that i can scroll horizontal by left/right clicking the scroll wheel with the default settings in Word and OneNote?

    • Edited by ILT5000 Sunday, August 2, 2020 10:10 AM
    Sunday, August 2, 2020 10:06 AM
  • Beginners often think that sending keys are the simplest way to solve problems but then they have problems implementing that. It might be possible to solve the fundamental problem by sending keys but there is likely a simpler solution that initially looks harder. Unfortunately you have not described the fundamental problem.

    Sam Hobbs

    Sunday, August 2, 2020 5:46 PM
  • Hi ILT5000,
    As you said, you can use AutoHotKey (AHK) to achieve horizontal scrolling in Excle, OneNote except Word.
    Regarding implementation in Word, you can try the following suggestions:
    1. First, you can use AutoHotKey to send custom keystrokes to Word in response to mouse operations.
    2. Then set Word key binding.
    3. Finally, define the Word macro in the "normal" template.
    More details you can refer to  iagrapefruit's answer.
    Best Regards,
    Daniel Zhang

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Monday, August 3, 2020 3:02 AM
  • Hi ILT5000,
    Has your problem been solved? If it is resolved, we suggest that you mark it as the answer. So it can help other people who have the same problem find a solution quickly.
    Best Regards,
    Daniel Zhang

    "Windows Forms General" forum will be migrating to a new home on Microsoft Q&A (Preview)!
    We invite you to post new questions in the "Windows Forms General" forum’s new home on Microsoft Q&A (Preview)!
    For more information, please refer to the sticky post.

    15 hours 59 minutes ago