I want to print only the keys that've been pressed in "Google Chrome" .i've searched a lot didn't find anything. Need example code or smthg
idk my code:
import win32com.client as comctl
wsh = comctl.Dispatch("WScript.Shell")
wsh.AppActivate("Youtube - Google Chrome") # Google Chrome window title
wsh.SendKeys("{O}")
print(akeyhasbeenpressed) # :/