Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;This is the hotkey for starting script first time (and after reloading) - the hotkey for pausing script is in the bottom
- ^Y:: ; ^Y = Ctrl+Y
- ;NB! All coordinates are relative to a maximized Firefox window, scrolled all the way to the top.
- ;If they aren't right for you, you'll have to edit them manually.
- ;EDIT THE FOLLOWING (CODE)LINE FOR YOUR BROWSER'S EXACT TITLE:
- ;(To copy the exact title, run this script, right click the AutoHotkey icon, select "Window Spy",
- ;select the window with the game open, and then go directly to Windows Spy and copy it.)
- if WinActive("Play Crush Crush, a free online game on Kongregate - Mozilla Firefox")
- {
- timeleft := 2000 ;final delay after buying all gifts
- delay := 40 ;delay between every click - adjust higher if your browser doesn't register all non-scrolling clicks
- postScrollbarDelay := 60 ;in attempt to minimize the slips where it doesn't scroll properly
- buyShell(delay) {
- Click 780, 590
- Sleep, delay
- Click 510, 565
- Sleep, delay
- Click 910, 645
- Sleep, delay
- return
- }
- ;---------------;
- ; Actual script ;
- ;---------------;
- ;Scroll to top
- Click down 300, 500
- Click 300, 1000, 0
- Click up
- Sleep, 1000
- ;Scroll to fit Mio<->Elle
- Click 400, 525 down
- Sleep, delay
- Click 400, 545 up
- Sleep, delay
- ;Initial cassie select
- Click 310, 520
- Sleep, delay
- Loop {
- buyShell(delay)
- ;Mio
- Click 310, 610
- Sleep, delay
- buyShell(delay)
- ;Quill
- Click 310, 700
- Sleep, delay
- buyShell(delay)
- ;Elle
- Click 310, 775
- Sleep, delay
- buyShell(delay)
- ;Scroll to fit Iro<->Bonnibel
- Click 400, 537 down
- Sleep, delay
- Click 400, 680 up
- Sleep, postScrollbarDelay
- ;Iro
- Click 310, 520
- Sleep, delay
- buyShell(delay)
- ;Bonnibel
- Click 310, 610
- Sleep, delay
- buyShell(delay)
- ;Scroll back to Mio
- Click 400, 680 down
- Sleep, delay
- Click 400, 537 up
- Sleep, postScrollbarDelay
- ;Reselect Mio
- Click 310, 520
- ;Wait until ready again
- Sleep, timeleft
- }
- }
- ;This is the hotkey for pausing script - has to be down here
- ^P::Pause ; ^P = Ctrl+P
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement