2

I use the Sketchpad on Windows Ink Space a lot on my tablet and sometimes I wish to switch between applications without closing the Sketchpad and without moving much - ie: quickly swap to task view, click a different window for a second, swap to task view, re-open Sketchpad again.

I have a Tonor Bluetooth mouse which has a button that I don't use, but wish to rebind to toggle the task view window - this button is the DPI button.

How can I rebind this button on the bluetooth mouse to toggle the task view window?

Perhaps an AutoHotKey script if Windows10 won't support it? But how, in AutoHotKey, can I get the name of this mouse button to run the command on press?

1

Try this to get the Scan Code for the DPI-button (if it has one), then you can remap it:

1) Run this script:

#NoEnv 
#SingleInstance Force
Process, Priority, ,High
#InstallKeybdHook
#InstallMouseHook
#UseHook

a:: Keyhistory
  1. Press the DPI-button

  2. Press a.

    If the DPI-button has been recognized, you can see the scan code (SC) of this key as first under SC. in Keyhistory

If the SC of this key is e.g. 144, then use this code

SC144:: Send, {Ctrl down}{Alt down}{TAB}{Alt up}{Ctrl up}

to bring up the AltTab menu.

See also https://autohotkey.com/docs/KeyList.htm#SpecialKeys

  • Ah, it seems it doesn't even get written because the the only SC record is key a :( So perhaps it just modified the mouse firmware and doesn't even go to the OS? – hd. Feb 16 '17 at 16:31

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.