search for: idontpressthe_y_key

Displaying 1 result from an estimated 1 matches for "idontpressthe_y_key".

2008 Jan 15
3
How to interrupt a loop by pressing a key?
...quot;)),next,break) } print("final calculations") This also works but requires user intervention at each cycle to chose from "go" and "stop"... So... back to the initial question. Can I break the cycle with a signal from the keyboard? Something like this: while (Idontpressthe_Y_key) { (1) process all files already produced (2) wait for new files that are yet to be produced (3) see if I am pressing key Y (go to (1) if I am not, and quit the loop if I am) } Many thanks in advance, Bruno ------------------------ Bruno Jesus Centro de Oceanografia Campo Grande 1740-016 Lisboa...