Advertisement
Darksider3

RandomMouseMovmenet

Jul 11th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn  ; Enable warnings to assist with detecting common errors.
  3. SendMode Event  ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  5.  
  6.  
  7. SetTimer, MouseMovement, 5000
  8.  
  9. ReloadScript() {
  10.     SendEvent {RButton Down}
  11.     SendEvent {RButton Up}
  12.     ExitApp
  13. }
  14. MouseMovement()
  15. {
  16.     SendEvent {RButton Down}
  17.     SetDefaultMouseSpeed, 100
  18.     random, x, 0, 1920
  19.     random, y, 0, 1080
  20.     CoordMode, Mouse, Screen
  21.     MouseMove, x,y,100
  22.     SendEvent {RButton Up}
  23. }
  24. ESC::ReloadScript()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement