TCC > Variables & Functions > Variables:
Comments (...)
_IDLETICKS returns the number of milliseconds since the last user input.
Help URL: http://jpsoft.com/help/index.htm?_idleticks.htm