;This script uses the UltraMon Screen Saver Player (requires Ultra Mon ;and automates it to activate screen savers on certain monitors when ;they're inactive. ;http://www.realtimesoft.com/ultramon/addons.asp ;------------------------------------------------------------------------ ; Instructions: ;Put this .ahk file in the same folder as Ultra Mon ScrPlayer. ;Configure the settime and screensaver path below, then launch this .ahk ;------------------------------------------------------------------------ settime=30 ;Seconds before screensaver turns on #singleinstance,force CoordMode,Mouse,Screen time=0 start: loop { mousegetpos,mousex,mousey if time= % settime * 1000 { if mousex > % a_screenwidth { time=0 } if mousex < % a_screenwidth { ;Run Lattice.scr on monitor 2 -----------------------------. run, ScrPlayer.exe C:\Windows\system32\Lattice.scr 2 ;Path to your scr | goto screensaveron ;---------------------------------------------------' break } } else if mousex > % a_screenwidth { time=0 } sleep,1000 time+=1000 } return screensaveron: time=0 loop { mousegetpos,mousex,mousey if mousex > % a_screenwidth { Winclose,UltraMon Screen Saver goto start } sleep,200 }