Guest User

Idle scratch-off

a guest
Nov 11th, 2019
518
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. CoordMode, Mouse, Window
  6.  
  7. ;diameter 28 ish
  8.  
  9. i:=0
  10. ]::
  11.     top:=417
  12.     left:=193
  13.     stepX:=2
  14.     stepY:=5
  15.     Loop {
  16.         Click, 380, 1000 ; corp menu
  17.         Click, 340, 580 ; buy corp
  18.         Click, 500, 380 ; close window
  19.         Loop, 1 {
  20.             Click, 284, 1000 ; store menu
  21.             Click, 340, 580 ; buy store
  22.             Click, 273, 757 ; buy triple point income
  23.             Click, 500, 380 ; close window
  24.             Click, 190, 1000 ; loyalty menu
  25.             Click, 340, 680 ; buy icon slots
  26.             Loop, 50 {
  27.                 Click, 340, 580 ; buy triple income (top button)
  28.             }
  29.             Click, 500, 380 ; close window
  30.             ;buy doubler
  31.             ;Click, 92, 998
  32.             ;Loop, 100 {
  33.             ;Click, 343, 571
  34.             ;}
  35.             ;Click, 501, 380
  36.            
  37.             Click, 345, 783
  38.             Sleep, 50
  39.             ;scratch the card
  40.             Loop, % stepY {
  41.                 why:=top + (A_Index - 1) * 380 // stepY
  42.                 Loop, % stepX {
  43.                     ecks:=left + (A_Index - 1) * 300
  44.                     MouseMove, % ecks, % why
  45.                     Sleep, 1
  46.                 }
  47.             }
  48.         }
  49.     }
  50. return
  51.  
  52. [::Reload
Advertisement
Add Comment
Please, Sign In to add comment