Re: [Tutor] [ctypes-users] Press ESC to exit()

2017-05-02 Thread Michael C
holy cow On Mon, May 1, 2017 at 8:02 PM eryk sun wrote: > On Mon, May 1, 2017 at 6:28 PM, Michael C > wrote: > > Hi all, I found out that one way to press ESC to kill the script was to > use > > my previous > > script language, AutoHotKey and

Re: [Tutor] [ctypes-users] Press ESC to exit()

2017-05-02 Thread eryk sun
On Tue, May 2, 2017 at 3:03 AM, Michael C wrote: > holy cow The code for a global keyboard hook is a bit complex - mostly because I had to use ctypes (properly instead of an unreliable hack). Normally an application has one or more windows and a message loop, in

Re: [Tutor] [ctypes-users] Press ESC to exit()

2017-05-01 Thread eryk sun
On Mon, May 1, 2017 at 6:28 PM, Michael C wrote: > 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