; Lines that start with a ; semicolon are comments.
; Microsoft Office Keyboard RT9450: Making the ScrollWheel work under
' Windows 7. ScrollUp/Down Normal, Fast, Faster, Fastest
#SingleInstance ignore ; Inserted by 2ward2 to avoid double running of the script
sc10B Up::Send {WheelDown}
sc111 Up::Send {WheelDown 3}
sc112 Up::Send {WheelDown 5}
sc11F Up::Send {WheelDown 7}
sc10B Down::Send {WheelUp}
sc111 Down::Send {WheelUp 3}
sc112 Down::Send {WheelUp 5}
sc11F Down::Send {WheelUp 7}
Return
Once the script is compiled by AutoHotKey, a link to the file can be placed into the Start folder so that it will always be installed during startup.
#SingleInstance ignore ; Avoids double running of the script
sc113::Run swrite ; Remaps the Word key to run the Open Office Text program
sc114::Run scalc ; Remaps Excel key to run the Open Office spreadsheet program
Since I wanted the ScrollWheel to function as well as to remap the Office buttons, I added my remap code for the Word and Excel keys to the script by Barcode 01. That resulted in the following entire AutoHotKey 1.x code that performs all these remaps:
; AutoHotkey Version: 1.x
; Language: English
; Platform: Vista 64
; Author: W. S. De Witt <ward2gm@gmail.com>
; With acknowledgments to: Barcode 01 (on http://social.technet.microsoft.com/Forums/en-US/itprovistahardware/thread/e56a845c-72dc-442f-94ce-dec6f60724b5/
;
; Script Function:
; Remaps Microsoft Office Keyboard to enable ScrollWheel function
; Optional remap of Word and Excel keys to other programs
;
; The following three lines of code appear when first opening a new AutoHotKey script for editing
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; --------------------------------------------------
; Lines that start with a ; (semicolon) are comments.
; Microsoft Office Keyboard RT9450: Making the ScrollWheel work under Vista 64 or Windows 7.
; ScrollUp/Down Normal, Fast, Faster, Fastest
#SingleInstance ignore ; Inserted by 2ward2 to avoid double running of the script
sc10B Up::Send {WheelDown}
sc111 Up::Send {WheelDown 3}
sc112 Up::Send {WheelDown 5}
sc11F Up::Send {WheelDown 7}
sc10B Down::Send {WheelUp}
sc111 Down::Send {WheelUp 3}
sc112 Down::Send {WheelUp 5}
sc11F Down::Send {WheelUp 7}
; --------------------------------------------------
; Remap Word and Excel keys to use OpenOffice.org 3.1 programs for text and spreadsheet
sc113::Run swriter ; Put a semi-colon in front of this line to disable this remap
sc114::Run scalc ; Put a semi-colon in front of this line to disable this remap
Return
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (1)
Author
Commented: