www.icetips.com  Icetips Utilities Documentation 5/9/2015    

Windows Class: GetLastInputTime

Previous  Top  Next  


Prototype: (),LONG

 

ReturnsReturns the number of milliseconds since the last user input action occurred on the system. 

 

This method is used by the GetIdleTime method to find out how long the system has been idle.  The method returns the number of ticks or milliseconds since the last user input occurred, i.e. either mouse movement/click or keyboard click.  It does not consider program execution as user action, i.e. if a program is left running and it is performing some operation the ticker is not affected.  As long as no mouse of keyboard input is registered the method returns the same number.

 

Example:

ITW  ITWindowsClass

T    Long

Code

T = ITW.GetLastInputTime()

 

 

See also:

GetIdleTime

 



Direct link to this page: http://www.icetips.com/manuals/utilities/getlastinputtime_window.htm