Hi there,
Using AutoInput (made my Tasker developer, extra purchase, well worth it) you can use something like the following:
Profile -> Event -> Plugin -> AutoInput -> UI Action
Here, you could use the features to associate, for example, clicks on specific elements in focus (the profile) with a Variable Set action (the task).
Then, what you have is the local variable, in your use you would like %aicoordinates
So the task would include Variable Set for an X and Y and then processed however you feed the variables in your subsequent workflow.
Every time the profile is triggered there will be a new local variable %aicoordinates passed to the task.
![Screenshot_20240525-103604.png](https://groups.google.com/group/tasker/attach/945fb691242c1/Screenshot_20240525-103604.png?part=0.1&view=1)