How to catch a double digit with CHARTEVENT_KEYDOWN?

 

Hello all,

   if(id==CHARTEVENT_KEYDOWN) {
     if (CharToStr(lparam)=="1") {---

I made this way and it works, how can I catch a "11" per example?


Thank you.

 

There is no 11 key on the keyboard so you need to code a small sequence of action.

Depending on the application you could also try a edit input object.

 

Input object doesn't serve.


The ideia is to check if the second "1" is pressed before one second and trigger the action.

Any sample code or suggestion?

 
GetMicrosecondCount()
Reason: