Flowm / etherkey

Emulate a conventional USB keyboard with a scriptable, network capable microcontroller.
MIT License
133 stars 22 forks source link

Add Support for function Keys #7

Closed Davidthemastercoder closed 1 year ago

Davidthemastercoder commented 1 year ago

Hello first of all thanks for sharing with us this great thing.

Could you please add Support for Fuction Keys ? Like F1 - F12 so one could open the BIOS for example when the system is booting up ?

nummer30 commented 1 year ago

Hello @Davidthemastercoder,

Thank your for your suggestion: support for F-Keys sounds like a great idea.

I don't see why this shouldn't be implemented in Command Mode.

However, in Interactive Mode, I fear this might be difficult. I'm not too sure about the details anymore (we implemented this stuff in 2014), but F-Keys in Terminal emulators are already complicated, and sending them over the serial interface to the teensy is difficult. (It would probably lead to restrictions which terminal and client has to be used)

Would it be sufficient for your use case if you could send the F-Keys in Command Mode with the command Send {F12}?

Davidthemastercoder commented 1 year ago

Thank you very much, for that fast reply. I would need to be able to use like a Script who can send those keystrokes. I mean i can use Python and the serial Module to Access the Teensy. And then i might be able to send keystrokes to switch the Mode. So it should work.

Would be nice if we get like F1 , F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12

It would be very nice, if you could implement it in the Command mode. I try it than probably out and give you Feedback.

nummer30 commented 1 year ago

Hi @Davidthemastercoder,

I just implemented support for F1-F12 in command mode in e2cba383fed8423d9d42a4f87fd7d58645db4ca5. You can now do something like Send !{F4} to press Alt+F4, and similar things.

Please let me know if this works for you.

Davidthemastercoder commented 1 year ago

Thank you very much