Save image with different names

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
math22
Newbie
Posts: 12
Joined: Sun Dec 03, 2017 1:00 am

Save image with different names

Post by math22 » Tue Dec 19, 2017 7:11 pm

Is possible save images with different patch names like:

Example

Line:40
C:\Users\Matheus\Documents\Macro Scheduler 14\Firefox\dir.bmp

When macro get at line 40 again, he would save (dir.bmp) as:
C:\Users\Matheus\Documents\Macro Scheduler 14\Firefox\dir2.bmp

Next time

C:\Users\Matheus\Documents\Macro Scheduler 14\Firefox\dir3.bmp

Etc

AndrewT
Junior Coder
Posts: 38
Joined: Thu Sep 17, 2015 6:06 pm

Re: Save image with different names

Post by AndrewT » Tue Dec 19, 2017 9:25 pm

Use a loop counter (ie. x=x+1) and then use this variable in your path name like:

Code: Select all

Let>x=0
Repeat>x
Let>x=x+1
Let>ImagePath=C:\Users\Matheus\Documents\Macro Scheduler 14\Firefox\dir(%x%).bmp
Rest of looping code
Until>x=end of loop condition
 
AndrewT

math22
Newbie
Posts: 12
Joined: Sun Dec 03, 2017 1:00 am

Re: Save image with different names

Post by math22 » Wed Dec 20, 2017 3:35 am

Thankyou it worked, one more doubt.

I have 4 macros running at same time, is possible do a code to when i stop the main macro with "Shift Esc" the others 3 also stop?

When i have multiple macros (allow multiple instances option in config) running and i press "shift esc" the command stop only one macro.

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