DonationCoder.com Software > Post New Requests Here
wanted for AutoHotkey: color-detecting solution I can use in my scripts
(1/1)
brotherS:
Hello!
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? :)
MilesAhead:
You may find some ideas in these threads:
http://www.autohotkey.com/board/topic/73692-wait-until-site-has-finished-loading/page-2
http://stackoverflow.com/questions/23698421/autohotkey-wait-for-browser-to-load-webpage-before-continuing
Navigation
[0] Message Index
Go to full version