Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Esc::ExitApp
- r::Reload
- a::
- Process, priority, , High
- loop {
- i = 1
- ; jump intervals
- a = 667
- b = 532
- c = 467
- d = 433
- e = 383
- ; f = not needed since 200-300 can be done with a single interval
- g = 400
- g2 = 401
- delay = 100
- balancer = 0
- currentInterval := a
- extraTime = 0
- ToolTip, start, 400, 400
- ; Initiate steps to begin
- Send {Enter down} ; Press down the Enter key.
- DllCall("Sleep", "Uint", 100)
- Send {Enter up} ; Release Enter key.
- Sleep, 2000
- Send {Enter down} ; Press down the Enter key.
- DllCall("Sleep", "Uint", 100)
- Send {Enter up} ; Release Enter key.
- Sleep, 3000
- Send {Enter down} ; Press down the Enter key.
- DllCall("Sleep", "Uint", 100)
- Send {Enter up} ; Release Enter key.
- ; Detect 1st jump
- Loop {
- PixelSearch, x, y, 592, 514, 592, 514, 0xA1825D, 20, Fast RGB
- If (ErrorLevel = 0) {
- sleep, 800
- break
- }
- }
- start := A_TickCount + 50
- loop
- {
- ; Detect if failed and back at the start to retry
- PixelSearch, x, y, 643, 487, 643, 487, 0x3E5E78, 20, Fast RGB
- If (ErrorLevel = 0) { ; reset
- sleep, 3000
- Send {Enter down} ; Press down the Enter key.
- DllCall("Sleep", "Uint", 100)
- Send {Enter up} ; Release Enter key.
- sleep, 2000
- break
- }
- ; Manual override
- GetKeystate, state, Enter
- if (state = "D" and stop = 0)
- {
- break
- }
- timer := A_TickCount - start
- if (i = 1) {
- currentInterval := a
- } else if (i = 21) {
- currentInterval := b
- balancer = 0
- } else if (i = 51) {
- currentInterval := c
- balancer = 0
- } else if (i = 101) {
- currentInterval := d
- balancer = 0
- } else if (i = 201) {
- extraTime = 0
- delay = 70
- currentInterval := e
- balancer = 0
- } else if (i = 260) {
- extraTime = 20
- balancer = 0
- } else if (i = 301) {
- currentInterval := g
- balancer = 0
- } else if (i = 500 or i = 800) {
- currentInterval := g2
- } else if (i = 600 or i = 900) {
- currentInterval := g
- } else if (i => 1001) {
- if (Mod(i,2) = 0) {
- currentInterval := g
- } else {
- currentInterval := g2
- }
- }
- if(i > 1) {
- DllCall("Sleep", "Uint", (currentInterval - timer + balancer + extraTime))
- }
- Gosub, jump
- }
- }
- return
- jump:
- fullTime := A_TickCount - start - extraTime
- start := A_TickCount
- if(i > 1) {
- balancer += currentInterval - fullTime
- }
- ToolTip, %i% - %fullTime%, 400, 400
- Send {Enter down} ; Press down the Enter key.
- DllCall("Sleep", "Uint", delay)
- Send {Enter up} ; Release Enter key.
- ToolTip
- i += 1
- extraTime = 0
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement