0

For example when you type "abcd" anywhere on your device, it replaces it with "hello".

probably this https://pynput.readthedocs.io/en/latest/keyboard.html could help but im not sure

  • to do this you have to write your own terminal and register a signal handler for keyboard...Pygame, Qt, Tkinter or GTk can help – Narcisse Doudieu Siewe Nov 09 '22 at 17:27
  • This will be device specific. Is this s smartphone, Windows or maybe just a single application? In any case, this is likely off topic for stackoverflow because there are likely multiple solutions and libraries. – tdelaney Nov 09 '22 at 18:27

0 Answers0