At my previous workplace we had this autolocking policy for Windows machine. Sometimes it became irritating that while I was looking at an active log (on a pc) while sending some information from a laptop, the pc would autolock after a certain minutes.
So I resorted to this AutoIt script:
Local $pos = MouseGetPos()
MouseMove($pos-1, $pos-1, 0)
MouseMove($pos, $pos, 0)