The attached example includes a Touch archive and WinScript Live script that demonstrate an easy method to track when a button was last pressed and also display that information on the Touch interface.
Here is how it works:
Each button on the Touch interface is an Action Indicator item type. Each button is configured to set the variable buttonNumber to a unique number value and monitor the corresponding boolean variable in the buttonState list. The "Button Press" sequence is triggered every time buttonNumber is set, which turns off the buttonState of the last button, then turns on the buttonState of the new button, and finally stores the buttonNumber in the lastButtonNumber variable to be used the next time buttonNumber is set.
You will need Touch version 2.08 or greater available here: http://alcorn.com/support/software.html
Unlock code for the Touch Archive is 1-1-1-1