Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;--- SETTINGS -----------------------------------------------------------------
- distance_x_px := 1
- check_interval_secs := 60
- minimum_idle_mins := 5
- ;--- MAIN LOOP ----------------------------------------------------------------
- ; If the user has been idle for 2.5 minutes time this script moves
- ; the mouse pointer left and right by distance_x_px in regular intervals
- ;
- movement_x := distance_x_px
- check_interval_millis := check_interval_secs * 1000
- minimum_idle_millis := minimum_idle_mins * 30000
- Loop {
- Sleep, 30000
- if (A_TimeIdle > minimum_idle_millis) {
- movement_x := -1 * movement_x
- MouseMove, %movement_x%, 0, 0, R
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement