Thanks for the explanation. This works the way I want it to... working with the rollover without causing an overflow error even if I leave overflow checking turned on. DWord((QWord(GetTickCount) - QWord(Last_Input_Info.dwTime)) AND $00000000FFFFFFFF) James