树莓派做不到的,用Arudino吧,然后搜索下BadUSB示例就行了。
Arduino可以模拟任何USB设备,包括键盘。
Arduino偏宜的才20块钱一片,又偏宜又好用,你可以买个Arduino Lenordo玩玩。
传送门:http://www.geek-workshop.com/thread-1137-1-1.html