avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday November 28, 2023, 3:44 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: wanted for AutoHotkey: color-detecting solution I can use in my scripts  (Read 3192 times)


  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,260
    • View Profile
    • Donate to Member

I have several scripts that load a website and interact with it in some way. Because it was the easiest-to-code solution, I'm using "sleep" for the script to wait until the site has loaded. That sucks though, because load times depend on Windows and server load and so I either have to use really long "sleep" times (zzzZzZzz...) or short "sleep" times that then cause the script to fail because the site hasn't yet fully loaded.

I'd love to be able to use a solution that detects if a given pixel has color #whatever (I imagine something like "PixelGetColor, 500, 600" and "IfPixelColor = ..."). I googled around and there doesn't seem to be a good solution for this yet. Or maybe Chrome can report back to AHK somehow that it has finished loading that tab?

Any ideas?  :)


  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member