From: Picklegnome Date: 2006-07-30T02:35:05+09:00 Subject: Loop Timing and Constant Input A few quick questions: How can I make a loop that runs at, say, 8Hz? That is, every 1/8 of a second, it executes the loop. I could put a pause at the end of the loop (what is the syntax for making the script wait a certain amount of time before continuing?) but this is rather imprecise - I want the loop to take 1/8 of a second, including all processing time. Secondly, how can I get input from the keyboard without the user pressing enter? Say, the user is holding "R" and presses "K" while still holding down "R". Can I get these key presses ("R"s, a "K", and more "R"s), dump them into a buffer, sort out the unique ones (I know how to do this part) and pass each of the unique key presses to the appropriate handlers? Thanks, Picklegnome