/StylusButtonGesture-AutoHotkey

An AutoHotkey script to customize Surface Pro 3 pen buttons

Primary LanguageAutoHotkey

Windows Stylus (Pen) Button Gesture .ahk

Script that makes gestures available when button hovering on Tablet PC.

Document

Korean

English

Objective

Windows allows you to use mouse gestures in various programs (StrokeIt, GestureSign). However, the stylus (pen) doesn't work with these gestures. This Program makes it by allowing mouse gestures during Hovering stylus(pen) with pressing button.

Demo

Alt text for your video

Install

Install AutoHotkey and run Pen.ahk. The Pen.ahk script will run only if the AHKHID.ahk script is in the same folder.

How to use

  • During Pen Hovering, press and hold the second button of the pen and execute the mouse gesture. The buttons in the mouse gesture program are based on right-click.
  • During Pen Hovering, double click the 2nd button make the {WIN + TAB} button pressed to activate the app switcher.

Algorithm

If the Pen is hovering on the screen in the WindowsOS, the mouse will follow to that coordinates. However, in Chrome and certain apps, the pen's coordinates and mouse's coordinates do not match, so they're set to move apart. Because of this, I made two coordinates matched.

Acknowledgements