BamBam0099
July 16th, 2008, 04:15 AM
I've tried everything and read all the docs and still it doesn't work.
The scenario is easy, I want to have an action occur when I press and hold a button for 2+ seconds. The problem is that as soon as I press the button (with interval property set), the defined action occurs immediately no matter what the action is, then the interval part works correctly but I just can't seem to have it ignore executing the action as soon as the button is pressed. I want the action to occur only once and that's when the elapsed time from the initial button press and hold is >= 2 seconds.
Any ideas? I've tried using the up property but for some reason, events will not trigger on button up.
Thanks in advance to all replies....
The scenario is easy, I want to have an action occur when I press and hold a button for 2+ seconds. The problem is that as soon as I press the button (with interval property set), the defined action occurs immediately no matter what the action is, then the interval part works correctly but I just can't seem to have it ignore executing the action as soon as the button is pressed. I want the action to occur only once and that's when the elapsed time from the initial button press and hold is >= 2 seconds.
Any ideas? I've tried using the up property but for some reason, events will not trigger on button up.
Thanks in advance to all replies....