AnsweredAssumed Answered

Binding keys to another predefined key.

Question asked by gmdii80 on Jan 21, 2019

In the following script file There are 3 lines that are giving me issues. I can successfully map to a menu item but I need 3 buttons on my mouse to map to other keys on the keyboard.

 

The mouse buttons 1,2,3 are read as keyboard numerical values 1,2,3. its the same as hitting 1,2 or 3 on the keyboard. I am unable to remap my mouse keys.

 

Mouse button 1 to Down Arrow

Mouse button 2 to Up Arrow

Mouse button 3 to F3 

 

 

 

Option Explicit

 

dim BindMenu

dim BindAccelerator

dim BindCommand

dim keyBindTables

dim Key

 

BindMenu = 0

BindAccelerator = 1

BindCommand = 1

Key = 2

 

Set keyBindTables = Gui.Bindings("Document")

 

keyBindTables.AddKeyBinding "1", "UpArrow", BindCommand, Key

keyBindTables.AddKeyBinding "2", "DownArrow", BindCommand, Key

keyBindTables.AddKeyBinding "3", "F3", BindCommand, Key

Outcomes