Let + MouseMove

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
ASilva3111
Newbie
Posts: 1
Joined: Mon Aug 14, 2023 4:34 pm

Let + MouseMove

Post by ASilva3111 » Mon Aug 14, 2023 4:47 pm

I am trying to use a Let> and a MouseMove> commands, yet getting script errors.

The location changes due to screen movement at the time of opening the page that I need to click on.
So I thought about having several Let>variable at the top of the script so I could edit them for that day to run the script. Then make use of MouseMove>%variable% and LClick on the following line.

Sample lines:

Code: Select all

Let>photo=-1100,662
Let>id=-1200,628
Let>firstname=-1200,675
Let>lastname=-1200,720
Let>barcode=-1200,775
Let>print=-1418,402
Let>date=8/14/2023

MouseMove>%photo%
LClick
MouseMove>%date%
LClick
and so on...
getting the following error dialog box:
Invalid Numeric Value for MouseMove command.

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1354
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Let + MouseMove

Post by Dorian (MJT support) » Mon Aug 14, 2023 10:40 pm

Either of these would work for photo :

Code: Select all

Let>photoX=-1100
Let>photoY=662
MouseMove>%photoX%,%photoY%

Code: Select all

Let>photo=-1100,662
Separate>photo,comma,coord
MouseMove>coord_1,coord_2
Date is giving you the error because instead of moving to X and Y coordinates, you're attempting to move to "8/14/2023" which is of course a date and not mouse coordinates.

More MouseMove info
Yes, we have a Custom Scripting Service. Message me or go here

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