The Digispark > Digispark Projects
Digispark Keylogger
(1/1)
Coto:
I'm looking to create a Keylogger using a Digispark and a USB Type A Female Breakout.
Wiring:
Pseudocode:
--- Code: ---#include "DigiKeyboard.h"
void setup() {
// don't need to set anything up to use DigiKeyboard
}
void loop() {
DigiKeyboard.sendKeyStroke(0);
DigiKeyboard.println(Key.Pressed_onTheKeyboard);
}
--- End code ---
I know this isn't a Keylogger (yet), but just reads the Keyboard's Data from the Digital Pins and passes the Data onto the Computer. So for now, it just acts like a USB Extender cable in that situation - its role is the same.
I would like to ask:
--- Code: --- DigiKeyboard.println(Key.Pressed_onTheKeyboard);
--- End code ---
What should I replace
--- Code: ---Key.Pressed_onTheKeyboard
--- End code ---
with to get this working?
Hazardous33040:
I believe the code is
"KeyPressed"
for arduino.
Here is the reference link:
https://www.arduino.cc/en/Reference/KeyPressed
dylanbatt74:
Coto, Did you ever get anywhere with this idea ?
Navigation
[0] Message Index
Go to full version