|
Post by angoraa on Mar 9, 2020 18:02:52 GMT
Hi, I was trying to create mouse macro move mouse to x(100 +random 15-20) y(200 +random 35-50). İ cant add random numbers to coordinates. How can i make functions like that.
|
|
|
Post by zeak on Mar 9, 2020 23:57:11 GMT
Hi Angoraa,
Welcome to the Forum, you can try something like this.
* | Change below value for mouse X position 1 | RUN ACTION | DEFINE INTEGER VARIABLE | %INTEGER%::100 * | Change below value for mouse Y position 2 | RUN ACTION | DEFINE INTEGER VARIABLE | %INTEGER1%::200 * | Time Between Movements 6 | RUN ACTION | DEFINE INTEGER VARIABLE | %INTEGER2%::500 * | Adding Random Amount 3 | RUN ACTION | DEFINE INTEGER VARIABLE | %INTEGER%::+%RANDOM_15-20% 4 | RUN ACTION | DEFINE INTEGER VARIABLE | %INTEGER1%::+%RANDOM_35-50% * | Action-MouseMove 8 | %INTEGER% | %INTEGER1% | %INTEGER2% | Mouse Movement
|
|
|
Post by Steve on Mar 10, 2020 7:45:19 GMT
Or something like this: 1 | %random_115-120% | %random_235-250% | 10 | Mouse Movement and to test it 10 times: 1 | FOR | I | = | 1 TO 10 | NEXT 2 | %random_115-120% | %random_235-250% | 10 | Mouse Movement 3 | FOR | NEXT gives this output from the MMM event log: 03/10/2020 06:42:42.08 PM Macro event: 2 | 119 | 240 | 10 | Mouse Movement 03/10/2020 06:42:42.19 PM Macro event: 2 | 118 | 242 | 10 | Mouse Movement 03/10/2020 06:42:42.29 PM Macro event: 2 | 119 | 249 | 10 | Mouse Movement 03/10/2020 06:42:42.41 PM Macro event: 2 | 117 | 236 | 10 | Mouse Movement 03/10/2020 06:42:42.51 PM Macro event: 2 | 117 | 238 | 10 | Mouse Movement 03/10/2020 06:42:42.62 PM Macro event: 2 | 118 | 246 | 10 | Mouse Movement 03/10/2020 06:42:42.73 PM Macro event: 2 | 118 | 250 | 10 | Mouse Movement 03/10/2020 06:42:42.84 PM Macro event: 2 | 119 | 243 | 10 | Mouse Movement 03/10/2020 06:42:42.95 PM Macro event: 2 | 118 | 241 | 10 | Mouse Movement
|
|
|
Post by angoraa on Mar 10, 2020 12:08:58 GMT
Thank you guys thats works for me
|
|
|
Post by zeak on Mar 12, 2020 21:52:17 GMT
Or something like this: 1 | %random_115-120% | %random_235-250% | 10 | Mouse Movement I forgot you can do Random in the X and Y of the Mouse Movement.
|
|
|
Post by cyberchipz on Mar 13, 2020 7:07:38 GMT
I like that, I didn't know that either... good to know.
|
|