02-22-2007 03:41 AM
02-22-2007 03:51 AM
02-22-2007 05:06 AM
Hi Jorge
I tried your example but the effect is still the same ... It acts upen the first keypress (and does what it's supposed to) but ignores everay further keystroke ... Could it be that the problem occurs because I'm using References instead of local variables?
02-22-2007 05:12 AM
02-22-2007 06:11 AM
You need to do a couple thing.
First, you need to move the control that you reading inside the loop and event case. The controls value will only be read when it gets scanned during program execution. With the control outside the loop, its value only gets read once before the loop starts.
Since the value of the control doesn't actually change until the control loses focus, you need to force the focus away from the control before it is read. You can do this with a property node.
Attached is a modified version that I think does what you want.
Ed
02-22-2007 06:18 AM
02-22-2007 06:19 AM
02-22-2007 07:48 AM - edited 02-22-2007 07:48 AM
Message Edited by shoneill on 02-22-2007 02:48 PM
02-22-2007 07:50 AM
02-22-2007 08:22 AM