keyPress/keyRelease problems : LUSENET : Tool Command Language (Tcl) : One Thread

I am using tcl/tk with C and was having trouble with keyPress and keyRelease. What I want to happen is when a key is pressed, set a flag to TRUE, and when it's released, set it back to FALSE. The problem I have is keyPress and keyRelease get called many times if you hold down a key. Any solutions before Friday, 02/18/2000 will be greatly appreciated. (Or even a little after that) Thanks.

-- Michael Schurman (, February 15, 2000


Well, I missed your deadline - that's for certain!

Even worse - I've no idea how to only get called for the first keypress or key release. As far as I know, you get called multiple times, period.

-- Larry W. Virden (, March 22, 2000.

Moderation questions? read the FAQ