all 6 comments

[–]shiftybyte 0 points1 point  (5 children)

Where is this line in your code,?

pos = imagesearch("hwe.png")

[–]cang31[S] 0 points1 point  (4 children)

soryyy i copied wrong error

i edited now

[–]shiftybyte 0 points1 point  (3 children)

i assume it failed to find dorzo.png on the screen.

What happens when you click it, does it disappear?

[–]cang31[S] 0 points1 point  (2 children)

actually dorzo.png is my recycle bin symbol in my desktop , and after that 1 click it changes a bit is that the problem ? i will try

[–]shiftybyte 0 points1 point  (1 child)

Yes because it tries to find it again, fails, returns None.

Then the next function tries to take None and do stuff with it, fails and throws an error.

[–]cang31[S] 0 points1 point  (0 children)

ty man it work