Getting mouse to click random pixels within bounds?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Uberdaf
Newbie
Posts: 2
Joined: Tue Apr 23, 2019 1:54 am

Getting mouse to click random pixels within bounds?

Post by Uberdaf » Wed Aug 23, 2023 2:01 am

I'm trying to make my mouse movements randomized within a specific box. Here's what I have so far, which is just a copy/paste from another post on these forums from 2007, in a basic loop. When I run it, I get two error messages:

" xstart+xrand ystart+yrand" - I hit "Ok", then it says:

" Error in : timing
Line: 15 - Invalid Numeric Value for MouseMove command
OK ABORT"

User avatar
Grovkillen
Automation Wizard
Posts: 1024
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Getting mouse to click random pixels within bounds?

Post by Grovkillen » Wed Aug 23, 2023 6:53 am

You need to use {} when using more than one arithmetic operator in a let command.

Code: Select all

Let>SUM=1+1
//SUM=2
Let>SUM=1+1+1
//SUM=1+1+1
Let>SUM={1+1+1}
//SUM=3
Let>ME=%Script%

Running: 15.0.24
version history

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts