[fpc-pascal] Getting Last User Input reliably

James Richters james.richters at productionautomation.net
Sun Dec 5 20:09:05 CET 2021


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



More information about the fpc-pascal mailing list