#I need to speed up my py auto gui bot

29 messages · Page 1 of 1 (latest)

slate raft
#

Don't take a screenshot every time you find a squares color. Take the screenshot before the loop, put it in a variable, and pass that variable to the findSquareColor function.

sand bobcat
#

ok, do you know how to find a pixel on an already taken screenshot by any chance?

#

thanks for helping btw

slate raft
#

Exactly as you already are.

#

screenshot() returns a value. A variable is a value. Treat the variable the same way you'd treat the screenshot function call.

sand bobcat
#

but if i only call it out once

#

will it work with the same image?

slate raft
#

Yes

sand bobcat
#

oh well tahts a problem

#

forgot to mention a minor detail

#

i need to refresh the image each time i call ourt the functiuon

slate raft
#

Which function

sand bobcat
#

i call out function numnber 2

#

but

#

function number 2 uses function number 1

#

so i call out both

#

oh i get it now

#

sorry

#

let me try that

#

oh WEOW\

#

now it takes 1 milisecond

#

thank you

slate raft
#

Haha yeah

#

Np

sand bobcat
#

have a good day

#

or night

#

idk your contry

#

alr how do i close this ticket

slate raft
#

/close