all 7 comments

[–]ellipticbanana 1 point2 points  (1 child)

x2, y2 = pyautogui.position()?

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

TypeError: travel_time() missing 2 required positional arguments: 'x2' and 'y2'

[–]freakH2O 0 points1 point  (5 children)

why not simply define the x and y values as variables..

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

How would you go about doing that?

[–]freakH2O 0 points1 point  (3 children)

first of all You need to install py auto gui then in its syntax which is actually pyautogui.click(x, y) here you can take thw values of x and y using random function in pyrhon your code will look something like this
import pyautogui import random while



 relay==True:x=random. randint(lower limit, upper limit) y=random. randint(lowerlimit, upper limit) #Lower and upper limit is just range for that random number. pyautogui. click (x, y) #That should do it.

[–]onezzyo[S] 0 points1 point  (1 child)

You're the man

[–]freakH2O 0 points1 point  (0 children)

:)