Jan 17, 2025 11:09 PM
(This post was last modified: Jan 17, 2025 11:11 PM by Hackers.)
I wanted to see if an LLM could create code in each language, to record keypresses and log a message if I use a SHIFT+G keybind. The idea is that this could be used to have custom keybinds. It also shows how you can get keycodes / keystrokes in various languages: Go, C++, Python, and Java.
PROMPT:
![[Image: Screenshot-2025-01-18-010237.png]](https://i.ibb.co/2SpgD6b/Screenshot-2025-01-18-010237.png)
![[Image: Screenshot-2025-01-18-010415.png]](https://i.ibb.co/bFV08z1/Screenshot-2025-01-18-010415.png)
![[Image: Screenshot-2025-01-18-010441.png]](https://i.ibb.co/S0YzBKN/Screenshot-2025-01-18-010441.png)
PROMPT:
Code
Create a _____ program that listens for SHIFT+G keybind and prints msg , and if not shift+g it prints the key + "not valid" instead. for windows![[Image: Screenshot-2025-01-18-010237.png]](https://i.ibb.co/2SpgD6b/Screenshot-2025-01-18-010237.png)
![[Image: Screenshot-2025-01-18-010415.png]](https://i.ibb.co/bFV08z1/Screenshot-2025-01-18-010415.png)
![[Image: Screenshot-2025-01-18-010441.png]](https://i.ibb.co/S0YzBKN/Screenshot-2025-01-18-010441.png)


