How to optimize the speed of a script as much as possible.

Helpful script writing tricks and HowTo's
serg
Posts: 19
Joined: 21 Mar 2015, 05:33

Re: How to optimize the speed of a script as much as possible.

11 Jan 2017, 07:26

nnnik wrote:
serg wrote:@Almost_there
"Gdip_ImageSearch" by MasterFocus is much faster than native "ImageSearch", - at least it used to be. I use it for reading text from screen.
Althou your last post should probably be in a separate thread
I actually meant something completely different from ImageSearch.
Maybe a Shape search algorythm.


Seems to me, image search would be more simple solution. Just use smallest common denominator image (that is part of all search targets) + GDIP_ImageSearch func, which is exteremly fast (I use script to read text from screen - letter by letter - and it takes fraction of a second to read whole screen with GDIP_ImageSearch). This way no need to analyze shapes.
Although Im not sure what you have in mind with shape search algo, maybe it would work better in a given case

Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 3 guests