Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Keypress when running a python app in a console on windows
Post: RE: Keypress when running a python app in a consol...

Hi, it's very simple test code print("Input choice") key = keyboard() if key == 'q': quit() if key == 'c': print("C pressed")The problem is this needs to work when wi...
Stephen General Coding Help 6 9,078 Apr-16-2019, 12:38 PM
    Thread: Keypress when running a python app in a console on windows
Post: RE: Keypress when running a python app in a consol...

Hi Larz60, I have a large main routine, I want to be able to add code at a point where I want to wait until a key is pressed then make a decision on the resulting key value. So I am unsure how I can ...
Stephen General Coding Help 6 9,078 Apr-16-2019, 11:18 AM
    Thread: Keypress when running a python app in a console on windows
Post: RE: Keypress when running a python app in a consol...

Than ks for the quick reply, Sorry I did not specify fully, I would like to check for a few different keys like 'q' = quit or space = continue the program I am happy to wait for a keypress then base...
Stephen General Coding Help 6 9,078 Apr-16-2019, 10:19 AM
    Thread: Keypress when running a python app in a console on windows
Post: Keypress when running a python app in a console on...

Hi all, I have a small python program running for the windows command window (console app) I want to detect a keypress when the console app has not got focus. I tried several ways to do this but it ...
Stephen General Coding Help 6 9,078 Apr-16-2019, 09:32 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020