Wacom pen buttons

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
lampdoors
Posts: 5
Joined: 11 May 2020, 10:53

Wacom pen buttons

Post by lampdoors » 11 May 2020, 15:07

Hi. I have a Huion Kamvas 13 Pro graphics tablet. It has 2 pen side buttons just like my Wacom Intuous tablet. The Wacom has a "Erase" function that I can select that is compatible with multiple programs:
Revu_pgN6GNLiEO.png
Revu_pgN6GNLiEO.png (95.19 KiB) Viewed 3512 times

I want to get the Huion to do the same but it's not built into their software:
Revu_IaHtC9l5TX.png
Revu_IaHtC9l5TX.png (154.68 KiB) Viewed 3512 times
Thus, I want to make it so that when I press a key, it will activate a Wacom pen button. Then I will bind the Huion pen button to that key.

HOWEVER, I cannot figure out how to reference the Wacom pen button for an AHK script. I've tried using AHKHID:
https://github.com/jleb/AHKHID

For the Example1 script, I was able to identify the Wacom VendorID of 1386:
AutoHotkey_gGQ9okRPSc.png
AutoHotkey_gGQ9okRPSc.png (91.08 KiB) Viewed 3506 times
I then used the Example2 script for each of those 4 entries and pressed the Wacom pen's side buttons but the only thing that came up was the cursor data:
Image Broken Link for safety

BNOLI
Posts: 548
Joined: 23 Mar 2020, 03:55

Re: Wacom pen buttons

Post by BNOLI » 12 May 2020, 03:59

Remember to use [code]CODE[/code]-tags for your multi-line scripts. Stay safe, stay inside, and remember washing your hands for 20 sec !

lampdoors
Posts: 5
Joined: 11 May 2020, 10:53

Re: Wacom pen buttons

Post by lampdoors » 12 May 2020, 17:44

Were you trying to link to something other than a simple google search? I have tried searching google for hours.

User avatar
boiler
Posts: 16931
Joined: 21 Dec 2014, 02:44

Re: Wacom pen buttons

Post by boiler » 12 May 2020, 20:08

Why are you trying to map to the Wacom Pen? That's just a roundabout way of doing what you really want to do. After all, erase mode on the Wacom pen is just a map of the e key to call up the eraser in Photoshop (and I suppose other apps). Can't you just map e directly to your Huion pen's key? It looks like you've attempted to map e to it already. Doesn't that do the job?

lampdoors
Posts: 5
Joined: 11 May 2020, 10:53

Re: Wacom pen buttons

Post by lampdoors » 13 May 2020, 08:53

Using 'e' doesn't work as well as the Wacom's 'Erase' function. When using the 'Erase' function, holding the button down activates the eraser and when you let it go, it goes back to whatever tool you were using before.
I'm in contact with Huion support to see if they can implement the feature in a driver update.
If that doesn't work I'll contact the developer of AutoHotInterception to see if he knows if this is possible.

bilalshahin
Posts: 1
Joined: 27 Jan 2023, 16:40

Re: Wacom pen buttons

Post by bilalshahin » 27 Jan 2023, 16:49

Hi! Did u find a solution for this so far?
I also use OneNote.

Post Reply

Return to “Ask for Help (v1)”