Is it possible for AHK to scan the screen faster than its frame rate?
Is it possible for AHK to scan the screen faster than its frame rate?
For example we have a web page with 10 buttons. When we click on one of them, some colors appear at different places on this web page. Let's say, we need to find the green color. So we do PixelSearch. But because frames change only once in 16,7 ms (for 60Hz screens), we have to use Sleep command and wait until the color appears on the screen. Is it possible somehow to reduce these 16,7ms? Or somehow else reduce the time between clicking a button and executing PixelSearch?
Re: Is it possible for AHK to scan the screen faster than its frame rate?
I've only ever been able to get my pixel scan as low as about 30ms give or take a few ms. This was for use in trigger bots and just general constant scanning of the screen where a new scan has to be done frequently. Maybe someone else can help you out.
-
- Posts: 60
- Joined: 13 Apr 2016, 22:02
Re: Is it possible for AHK to scan the screen faster than its frame rate?
I don't think ahk cares how fast your screen can change color..pixelgetcolor from a specific pixel location... I know green shows up here...would be fastest I can think of... if you have to scan big areas it takes much longer
Re: Is it possible for AHK to scan the screen faster than its frame rate?
Use my CGDipSnapshot library.
This will allow you to take a "Snapshot" of your screen, then do any number of PixelSearches on the snapshot as you wish, ensuring that all PixelSearches do the check on the same frame of animation.
This will allow you to take a "Snapshot" of your screen, then do any number of PixelSearches on the snapshot as you wish, ensuring that all PixelSearches do the check on the same frame of animation.
Who is online
Users browsing this forum: No registered users and 92 guests