Technical support and scripting issues
Moderators: Dorian (MJT support), JRL
-
fightcancer
- Macro Veteran
- Posts: 239
- Joined: Fri Apr 15, 2005 8:32 am
Post
by fightcancer » Mon Apr 04, 2022 5:47 am
Why does ArrayCopy do nothing in this script when both the X and Y arrays have data and NF=1?
Code: Select all
Let>needle=D:\MS\images\Paused.bmp
Let>haystack=D:\MS\images\Image2.bmp
FindImagePos>needle,haystack,1,1,X_Array,Y_Array,NF,EXACT
ArrayCopy>X_Array,,new
Thanks!
-
Dorian (MJT support)
- Automation Wizard
- Posts: 1348
- Joined: Sun Nov 03, 2002 3:19 am
-
Contact:
Post
by Dorian (MJT support) » Mon Apr 04, 2022 2:49 pm
Having just tested, it seems that if the array starts with _0, _0 is not copied. All the others are. We're looking into it.
Yes, we have a
Custom Scripting Service. Message me or go
here
-
fightcancer
- Macro Veteran
- Posts: 239
- Joined: Fri Apr 15, 2005 8:32 am
Post
by fightcancer » Tue Apr 05, 2022 8:07 pm
As you have likely discovered, created arrays in MS start with element 1. The FindImagePos is different as it starts with element 0.
Not sure what the fix is.
-
Dorian (MJT support)
- Automation Wizard
- Posts: 1348
- Joined: Sun Nov 03, 2002 3:19 am
-
Contact:
Post
by Dorian (MJT support) » Thu Apr 07, 2022 9:13 am
Marcus has looked at this and says it's probably a bug and is now on the to do list.
Yes, we have a
Custom Scripting Service. Message me or go
here