Jump to content

randomnumbgen

Members
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

randomnumbgen's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. HELP, I'm new to autoit and I'm trying to use it to play the chrome dino game. I can get my score to about 700 fairly consistently but the issue arises when I the game switches to night mode. When this happens it fades into night, so my checksums temporarily stop working. During the time they stop working I always die and I don't have a solution, I've been trying for 4 days now and I can't figure it out. Here is my code. I really appreciate your time. Run("C:\Program Files\Google\Chrome\Application\chrome.exe") ;opens dino game WinWait("New Tab - Google Chrome") Send("chrome://dino") Send("{ENTER}") MsgBox(0, "IMPORTANT", "To end the program press DELETE") ;sets delete as hot key to end program HotKeySet("{DELETE}", "Endprogram") Send("{SPACE}") $eyesite = 500 ;how far forward the dino sees infront of it While 1 Send("{space up}") ;unpresses all keys send("{DOWN up}") $checkforcactus = PixelChecksum(293,609 ,$eyesite,655) ;the checksums $checkforbird = PixelChecksum(250,530 ,$eyesite ,541) If $checkforbird <> PixelChecksum(250,530 ,$eyesite,541) Then ;checks for birds Send("{DOWN down}") sleep(200) $checkforbird = PixelChecksum(250,530 ,$eyesite,541) $eyesite = $eyesite + 4 EndIf If $checkforcactus <> PixelChecksum(293,609 ,$eyesite,655) Then ; checks for cactus Send("{space down}") Sleep(210) Send("{DOWN}") $eyesite = $eyesite + 4 $checkforcactus = PixelChecksum(293,609 ,$eyesite,655) EndIf WEnd Func Endprogram() Exit EndFunc
×
×
  • Create New...