Support Portal

for ProcessRobot and WinAutomation

Start a new topic

Add variable as offset (Random number)

In the move mouse to image, id like the ability to move the mouse to the image with the offset set as a variable

So i can generate 1-100 in both x/y and use them as variables

I believe there's a Generate Random Number action.

Yes but it can not be used as an offset in the action "move mouse to image" sadly

I see.

Guess you can just use Move Mouse with the offsets afterwards, then? 路‍♀️


You can use move mouse image to have it move to am image in an X,y subregion of the screen and the X.Y subregion of the screen can be variables.  These options will appear when you change the drop down to search a subregion of the screen.

Is this what your aiming to do?

I'm looking to move the mouse dynamically each time it moves to the image

Let's say I have a picture of a cup.
I want to move the mouse to the cup, while also having a random X/Y offset each time

This is extremely important would be super useful to me!

Also moving the mouse after the action isn't optimal, or human-like for what I'm trying to achieve
Just having the option to use a variable as an offset would be a lifesaver!
Like so

Ahh, underdatnd now, that feature does not exist because there is no variable option for the offset fields. Your only option currently is to follower the "move mouse image" with a plain "move mouse action" with option (move from current position) to X, Y which has varaible options and random action to generate random coordinates for your x,y variables.

Looks like you can output the image coordinates from the Wait for Image.

1 person likes this

True good point that's actually a great feature, didn't even realize it existed, thanks henrik

Login or Signup to post a comment