Microsoft Surface Dial - RadialController Class

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Trej
Posts: 13
Joined: 10 Mar 2019, 19:25

Microsoft Surface Dial - RadialController Class

Post by Trej » 20 Mar 2019, 20:17

Hi all,

I am slowly piecing together a project of mine to enable me to use my Surface Dial with Lightroom. I have made a lot of progress however one of the items I am stumped on and I asking for some help or guidance in the form of a basic script.

I don't know how to create a script that recognises when the Dial turns left or right, or when there is a press event.

I have read the details from Microsoft with no idea how to integrate the code in to AHK.

Links for the dial are below. If someone can interpret this for me that would be much appreciated. There is references to some dll files (Windows.UI.Input.dll, Windows.dll) but again I have no idea how to interpret these in to something usable in AHK.

RadialController Class https://docs.microsoft.com/en-us/uwp/api/windows.ui.input.radialcontroller
Windows.UI.Input Namespace https://docs.microsoft.com/en-us/uwp/api/windows.ui.input

For the moment my key focus is triggering a function when a dial button press occurs.

Below is the C# code from Microsoft. https://docs.microsoft.com/en-us/uwp/api/windows.ui.input.radialcontroller.buttonpressed

The event is called RadialController.ButtonPressed Event

Code: Select all

public event TypedEventHandler<RadialController, RadialControllerButtonPressedEventArgs> ButtonPressed

Return to “Ask for Help (v1)”