ViciousXUSMC Posted March 28, 2018 Share Posted March 28, 2018 (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 March 28, 2018 by ViciousXUSMC Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted March 29, 2018 Author Share Posted March 29, 2018 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. Link to comment Share on other sites More sharing options...
Earthshine Posted March 29, 2018 Share Posted March 29, 2018 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 Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted March 30, 2018 Author Share Posted March 30, 2018 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. Link to comment Share on other sites More sharing options...
Earthshine Posted March 30, 2018 Share Posted March 30, 2018 (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 March 30, 2018 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Developers Jos Posted March 30, 2018 Developers Share Posted March 30, 2018 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 etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Earthshine Posted March 30, 2018 Share Posted March 30, 2018 (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 March 30, 2018 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted April 2, 2018 Author Share Posted April 2, 2018 Thanks, I am not very good at this kind of thing, but I know there is enough data for a solution now. Link to comment Share on other sites More sharing options...
Earthshine Posted April 2, 2018 Share Posted April 2, 2018 (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 April 2, 2018 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now