how can I prevent an uncontrolled 'doubleclick'

oldman

New Member
Licensed User
Longtime User
I have created a input mask consisting of nineteen buttons ( number field 0-9, forward,back,save,exit....). The goal is a quick entry of numbers, so the button_long_click option would be a disadvantageous.
Of course every button has its sub routine, where a string (number) is created.
Because of the poorly responsive touchpad ( it's a low cost MID & E-Book device), i get double inputs. For example i received eleven instead of one.
Is the only solution a SLEEP(xxxx) command in the buttons sub routine or is there a special trick for it ?
 

NeoTechni

Well-Known Member
Licensed User
Longtime User
You could set a timer for each key
Disable the key when it's pressed, start the timer for that key, and re-enable it when it comes back on.
 
Upvote 0
Top