Click to the left of an image in an image array

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Trevor Hughes
Junior Coder
Posts: 25
Joined: Sun Dec 15, 2013 9:27 pm

Click to the left of an image in an image array

Post by Trevor Hughes » Tue Sep 05, 2017 10:15 pm

Hello

I want to be able to click to the left (180 pixels) of an image array. The image will appear multiple times and in every instance I want to de-select the item. I have tried the following but this gives me an error:
MouseMove>XArr_%k%-180,YArr_%k%

I'm sure that it is a simple fix but all the things I have tried have failed.

Any help would be greatly appreciated.

Kind Regards
Trevor

Code: Select all

//Find and Left Click Center of
FindImagePos>C:\Macro Scheduler\Bitmaps\CusModTaskExtraInfo.bmp,WINDOW:Tasks,0,1,XArr,YArr,NumFound,EXACT
If>NumFound>0
Let>k=0

  Repeat>k
    MouseMove>XArr_%k%,YArr_%k%
    LClick
    Wait>0.5
    Let>k=k+1
  Until>k=NumFound

Endif

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Click to the left of an image in an image array

Post by Marcus Tettmar » Wed Sep 06, 2017 2:05 pm

I'd do:

Let>XPos=XArr_%k%-180
MouseMove>XPos,YArr_%k%
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Trevor Hughes
Junior Coder
Posts: 25
Joined: Sun Dec 15, 2013 9:27 pm

Re: Click to the left of an image in an image array

Post by Trevor Hughes » Wed Sep 06, 2017 10:42 pm

Thanks Marcus

Had to be something simple.

I appreciate you assistance. You have a great product.

Kind regards
Trevor

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