Jump to content
ViciousXUSMC

How to use hotkeyset() for a specific input device?

Recommended Posts

ViciousXUSMC
Posted (edited)

A device was on sale the other day, just a really fancy external keypad that let you kick off a bunch of macros.

I found where somebody had been using AHK and LuaMacros together to do very much a similar thing using a normal keyboard connected as a secondary keyboard.

Meaning the desired result is that your main keyboard works for typing, but input from the 2nd keyboard is treated differently and would trigger a hotkey.

 

I very much feel AutoIT can do this, but not sure where to get started.

If anybody has some ideas, please let me know.

My mind is floating around the unique vid&pid of a USB HID Device, but I am not sure how to intercept and target keys from a specific device.

Edit: Oh and I searched first I did find this thread where somebody was trying to do the same thing, but that threat never really took off and I did not want to necro post.

 

 

Edited by ViciousXUSMC

Share this post


Link to post
Share on other sites
ViciousXUSMC

Another really good thread that has the right direction, but I was not able to quite figure out where to get it to start working code.

 

Share this post


Link to post
Share on other sites
Earthshine

I’ve seen a way to do this very thing but it is the language not allowed to mention here


My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
ViciousXUSMC

That would be a sad state of affairs.

Let me clarify I am only wanting to do what we do no with native AutoIT functions; aka HotKeySet() but need to make it smarter so that it can detect what device it should be responding to.

I have a clearly defined, non malicious goal here to make my own keyboard full of hotkeys to use at home and work to help with productivity, and as always to enjoy the adventure of learning something new as it has been a while since I have come up with new ways to use AutoIT.

Share this post


Link to post
Share on other sites
Earthshine
Posted (edited)

If you want I can look up the solution and pm you. You can then refactor to Autoit. His solution you could use like two or three keyboards even

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
Jos

There is no ban on mentioning AHK here, no worries, but don't go into discussions on building scripts in this other scripting language in our forums... simply use theirs. ;)

Jos 


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Earthshine
Posted (edited)

ok. cool. well, it uses a C# dll, so I am sure you could refactor the ahk to autoit

if you want to read about it, get the dll and get cracking

https://autohotkey.com/boards/viewtopic.php?f=6&t=45307

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
ViciousXUSMC

Thanks, I am not very good at this kind of thing, but I know there is enough data for a solution now.

Share this post


Link to post
Share on other sites
Earthshine
Posted (edited)

focus on that scripts interaction with the DLL. the rest I am sure you can do. :)

post it here if you want help as you run into things

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×