This is a quick example I created in which it move the mouse after a certain period of time of being idle. I could have changed the system settings, but then this wasn't an option.
#include <WinAPISys.au3>
Global Const $IDLETIME_GUID = '5816AA22-EEB4-4C92-BB07-4A5E1DBA4A6A'
Global Enum $IDLETIME_DELEGATE, $IDLETIME_ID, $IDLETIME_ISRUNNING, $IDLETIME_TIME, $IDLETIME_MAX
Global $g_bIsRunning = True ; For the example only. This is set to false when ESC is pressed.
HotKeySet('{ESC}', Cl