Advertisement
NJ5SkwAg

sparky

Oct 29th, 2015
128
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 Input  ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  5.  
  6. x1 := 587 ; mouse coords of top left
  7. y1 := 577
  8. x2 :=  ; mouse coords of top scroll bar
  9. y2 :=
  10. x3 :=  ; mouse coords of bottom scroll bar
  11. y3 :=
  12. i := 416
  13. f9:: ; have the window selected then press f9
  14.     WinGet, actWin, ID, A
  15.     loop
  16.     {
  17.         Click %x2% %y2% down
  18.         sleep 50
  19.         Click %x3% %y3% up
  20.         ControlClick % "x" x1 " y" y1, ahk_id %actWin%,,,, NA
  21.         ControlSend,, %i%{tab 2}{enter}, ahk_id %actWin%
  22.         sleep 31000
  23.         i++
  24.     }
  25. f10:: reload ; f10 to stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement