Re: [Tutor] Press ESC to exit()

2017-05-02 Thread Alan Gauld via Tutor
On 02/05/17 04:03, Michael C wrote: > holy cow I did warn you it was non trivial :-) Basically Eryksun has done what your scripting tool is doing in the background. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my

Re: [Tutor] Press ESC to exit()

2017-05-01 Thread Alan Gauld via Tutor
On 01/05/17 19:28, 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: > > ## When ESC is pressed, runs the function 'kill' > Esc::kill() > Is there a way to write it

[Tutor] Press ESC to exit()

2017-05-01 Thread Michael C
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,

[Tutor] Press ESC to exit()

2017-05-01 Thread Michael C
Hi all, I am trying to write a script to exit itself when ESC is pressed. I have found several answers regarding it such as this: http://stackoverflow.com/questions/43709710/push-esc- to-terminate-python-script?noredirect=1#comment74464169_43709710 But those only work when the program goes to