[RNG variable?] UI Interaction > Click > X±RNG, Y±RNG or X+RNG, Y+RNG

MrNox

New member
Hi,

i need a macro that clicks in a random spot between the pixels (example) X: 10 to 90, Y: 700 to 900, and should click a different spot in each cycle.

This could be made with X: 50±(RNG 0 to 40), Y: 800±(RNG 0 to 100) or X: 10+(RNG 0 to 80), Y: 700+(RNG 0 to 200).

Is there a way to accomplish this with this software?

Thanks for reading and your time.

Greetings.

MrNox
 

jagg

New member
A random number can be generated with the FLOOR expression (FLOOR(RANDOM()*upperlimit+1)) where upperlimit is the upper limit of your random range. Assign this value to a variable then use this variable in your ui touch command to touch a random spot within a specified range.
 

MrNox

New member
A random number can be generated with the FLOOR expression (FLOOR(RANDOM()*upperlimit+1)) where upperlimit is the upper limit of your random range. Assign this value to a variable then use this variable in your ui touch command to touch a random spot within a specified range.
Thank you very much, i will give it a try.
 
Top