jacexh / pyautoit

Python binding for AutoItX3.dll
MIT License
269 stars 74 forks source link

Pyautoit Pixel Search #20

Closed Lazy1997 closed 6 years ago

Lazy1997 commented 6 years ago

Pixel Search is not seem to work well with python. [AutoItError: color is not found] When i tested it with the notepad++ it work fine. it is same script.

EricHeidal commented 6 years ago

In autoit, the parameter order is (left, top, right, bottom). In PyAutoIt, the parameter order is (right, top, left, bottom). Someone figured it out through experimentation. Apparently there are also some issues with performing the function on multiple monitors. This StackOverflow page has more info. Another minor detail: it looks like the "default" search direction is different as well. In general, AutoIt will search the screen left-to-right and top-to-bottom, in the same way you'd read a book. PyAutoIt appears to be searching the screen right-to-left and top-to-bottom.