element72 Posted March 30, 2016 Share Posted March 30, 2016 (edited) I need the absolute fastest way of detecting a pixel. I have pixelsearch doing a 3x3 search. It would be obvious that searching for just 1 pixel space is faster right? So does that mean PixelGetColor is faster? Unless you set pixelsearch to one pixel space. The only other function I know of is Pixelchecksum. I also didn't see any opt settings to speed up the process. Any thoughts or comments are welcome. Please and thanks. Edit: Should I put in a specific window handle in parameters? instead of using desktop window handle? Is that something to consider? Edited March 30, 2016 by element72 Link to comment Share on other sites More sharing options...
AutoBert Posted March 30, 2016 Share Posted March 30, 2016 (edited) but in the time you must spend reading helpfile for understanding, pixel is already found using pixelsearch. Edited March 30, 2016 by AutoBert Link to comment Share on other sites More sharing options...
element72 Posted March 30, 2016 Author Share Posted March 30, 2016 (edited) 15 minutes ago, AutoBert said: but in the time you must spend reading helpfile for understanding, pixel is already found using pixelsearch. I need help understanding why you posted this. Is this faster? Because it seems like it just gives more options. Edit: Doesn't seem faster. At the end he states the performance feature is taking a snapshot which is about the same speed as pixelsearch and pixelget. That's what he said. But it is faster when it analyzes the snapshot. Overall, its about the same speed. Edited March 30, 2016 by element72 Link to comment Share on other sites More sharing options...
AutoBert Posted March 30, 2016 Share Posted March 30, 2016 (edited) I wether worked with it nor with Pixelsearch, the applications i have to automate don't need such unsafe methods. But the OP of link thread is suggesting this, try out the you will know. Edited March 30, 2016 by AutoBert Link to comment Share on other sites More sharing options...
junkew Posted March 30, 2016 Share Posted March 30, 2016 Fastest probably means assembly on gpu cores. Fastest you can get in autoit is probably searching for FAsm in forum. Alternative is to search for gdi functions. FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now