[ctypes-users] Press ESC to exit()
Brought to you by:
theller
From: Michael C <mys...@gm...> - 2017-05-01 18:28:36
|
Hi all, I found out that one way to press ESC to kill the script was to use my previous script language, AutoHotKey and this is how it works: AutoHotKey code ## function that kills the window with title '*Python 3.6.1 Shell*' kill() { WinKill, *Python 3.6.1 Shell* } ## When ESC is pressed, runs the function 'kill' Esc::kill() Yes, that's the entire script. Is there a way to write it in Python on windows? Thanks! |