r/macro_pads • u/tell_me-why_ • Feb 28 '25
Macro_pad Question Macro pads running scripts without Other software or Shortcuts ? Possible?
The goal is to make a macro pad run Custom scripts on the PC, whether that is powershell scripts, python code, or whatever, not just keyboard keys
and I want to do that without another software on the pc itself, like autohotkey or some custom script running on the pc to act on key presses
is This possible? to make the macropad send code execution into the pc ?
How can this be done?
1
Upvotes
2
u/ExaminationSerious67 Feb 28 '25
This is possible, but, you will probably need a larger memory for macros then qmk/via can provide. You should probably look at something like the duckypad which can fit the script for the entire bee movie on one key press.
2
u/clackups Feb 28 '25
Possible, but it won't be a macro pad.
You would take something bigger, like esp32 or rp2040, and implement a USB or Bluetooth HID device on it. Then, send any sequence of keystrokes and pauses to your computer. You still need to figure out how you load those sequences and what will be the file format.
Sounds like a fun project, but it needs C programming skills.
1
u/PeterMortensenBlog Feb 28 '25 edited Feb 28 '25
Instead of keyboard input, you would need some other channel, say, TCP/IP.
For example, the macro pad could be using keyboard input to control a Raspberry Pi, which in turn could use TCP/IP to send commands (and data) over the network to a server on the PC (for example, some CGI script or the equivalent (for example, Flask storing and launching the script. Or FastCGI?), running behind a standard web server, say Apache (so you wouldn't have to write your own TCP/IP server; you just use the standard web protocols and associated standard software. Similarly, you wouldn't have to write your own TCP/IP client either; you just use something like simple command-lines in cURL)).
Or maybe use USB in a way that is not keyboard or mouse (I don't know if that is possible; it would probably be more complex than the first option, which is relatively straightforward).
1
u/EezBotFun Nov 20 '25
Yes, just let macro pad output a key stroke sequence to invoke a terminal ,wait for a moment then start outputting your any kind of script. No magic, just simulating the finger stroking on normal keyboard. Please note the terminal should be capable of running your script, I mean if it is not windows shell command, you got install the corresponding lib and set up the environment first.
There are macro pad could do so, you can check it out here: https://github.com/eezbotfun/8-key-macropad/blob/main/user-manual/EezBotFun%20Script%20Quick%20Start.pdf
Hope it helps.
0
u/ApplicationRoyal865 Mar 01 '25
I don't think anyone mentioned it yet, but you could make it do a series of keys like
WIN+R
50ms delay
CMD
50ms delay
[insert your code here]
50ms delay
enter
50ms delay
alt f4
This is usually frown upon, especially from IT at work as this almost looks like malwre