Remap Surface Pen side button to hover right click
Posted: 11 Apr 2017, 13:50
TL;DR: This script will remap the Surface Pen's side button so that it can do hover-right click. It's based on scripts provided by Justice from http://www.tabletpro.net.
Hello
I recently bought a Surface Book and found the whole "hold side button + tap + release" thing very annoying (especially coming from a Surface Pro 2, where the side button can do a hover right click). Plus, it was also messing my workflow in Blender and Photoshop.
Anyway, after searching the web, I couldn't find a stable solution (RadialMenu works; but it also crashes frequently). Finally, I contacted Justice from Tablet Pro and he generously shared scripts and knowledge that made this possible. Now I can do hover right click using the side button on my Surface Pen (I've only tried this on the Surface Book; but it probably works on the Surface Pro 4 too). The script uses AHKHID, so you'll need that too.
I'm still testing this script; but it seems to work fine (Alt + Right hover click on Photoshop resizes the brush, Right hover click and drag works too; but I haven't tried using the Ctrl or Shift keys yet). So I'd be interested to see what other people can do to improve this script.
Finally, AutoHotKey is great! Thanks to everyone involved in it!
[Update: After some more testing I found some bugs related to the Ctrl, Shift and Alt keys. I've posted the fixed version below]
Hello
I recently bought a Surface Book and found the whole "hold side button + tap + release" thing very annoying (especially coming from a Surface Pro 2, where the side button can do a hover right click). Plus, it was also messing my workflow in Blender and Photoshop.
Anyway, after searching the web, I couldn't find a stable solution (RadialMenu works; but it also crashes frequently). Finally, I contacted Justice from Tablet Pro and he generously shared scripts and knowledge that made this possible. Now I can do hover right click using the side button on my Surface Pen (I've only tried this on the Surface Book; but it probably works on the Surface Pro 4 too). The script uses AHKHID, so you'll need that too.
I'm still testing this script; but it seems to work fine (Alt + Right hover click on Photoshop resizes the brush, Right hover click and drag works too; but I haven't tried using the Ctrl or Shift keys yet). So I'd be interested to see what other people can do to improve this script.
Finally, AutoHotKey is great! Thanks to everyone involved in it!
[Update: After some more testing I found some bugs related to the Ctrl, Shift and Alt keys. I've posted the fixed version below]