So, in this example, control is represented by the symbol "^", and, in conjunction with "z", it gives us the undo command. As an example, let's look how we would script an undo (Ctrl + Z) function. For single-click, we start like this:Įverything to the left of the "::" defines the function we are using, so, in this case, a single-click of the eraser. So, for example, let's start with our single-click eraser function. Best to steer clear.īefore we do anything, we will need to decide which function we wish to modify. This is a tricky function to reprogram as once you've changed right-click using a script, it affects right-click functionality across the entire system.
The identifier for right-click is rbutton. Warning: There is also a side button on the new Surface Pen, which, by default is set to right-click. Here are the identifiers for our three functions:
How to connect bamboo pen to surface pro how to#
Scripting may be scary to some of you, but AutoHotkey isn't really all that bad, and we're going to show you how to write some basic scripts. To edit your new script, you will need to right-click on the script you just made and then click Edit Script. This will create a new script for you to edit and place on your desktop. Make sure the name of your script ends with the extension ".ahk" for the script to execute. To do this, right-click on your desktop, go to New, click AutoHotkey Script, and then name your new script file. Once AutoHotkey is installed on your Surface, you're going to need to create a new script file.