BMP Not getting new files

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
macroman
Pro Scripter
Posts: 93
Joined: Mon Jun 02, 2014 5:32 am

BMP Not getting new files

Post by macroman » Thu Jul 21, 2016 5:54 am

I generated script ABC.exe, it also generated a bmp folder named ABC.... same script, I just decided to name a different .EXE file, which is DEF.exe... it created a folder name DEF with all the BMPS as well... then I continue to work on my scripts also generating new BMPS, it gets stored in ABC folder and not in DEF when exporting, even though I checked the mark to generate it's own BMP folder... Now I have to copy and paste new bmps from the original folder to the new one, very annoying... please help :)

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

Re: BMP Not getting new files

Post by Marcus Tettmar » Thu Jul 21, 2016 8:08 am

I don't really follow.

When you create a .exe of your script that is a one time snapshot of the script at that point. You aren't changing how you make your script. Your script is still ABC and is still using the ABC folder. But each time you recompile - which you will need to do if you make changes and want to reflect those changes in your .EXE it will copy everything to the destination folder.

Creating a .EXE is NOT changing the working folder. The working folder remains the same. But it will copy the BMPs to the destination folder.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

macroman
Pro Scripter
Posts: 93
Joined: Mon Jun 02, 2014 5:32 am

Re: BMP Not getting new files

Post by macroman » Fri Jul 22, 2016 3:22 am

That's correct.

When I compile to DEF.exe from macro named ABC, it does copy everything over to DEF BMP folder... when I add something new, recompiled to exe DEF, the new BMP files does not get copied over to the DEF, but instead it goes back to the first folder which is ABC....

Keep in mind, I didn't Save the Macro under a new name, I'm just naming my .EXE compiled file differently... my Macro name is still ABC - but I want the exe file to have a different name... the job name is ABC, but when I compiled to EXE, i name it DEF.exe.... everything in folder ABC should be copied over to DEF.... It does, only the first time... when I go and add a new image recognition capture, and recompile the exe, it does not copy/move the new BMP to the DEF folder. This has been going on a few versions now... you can test this or I can do a video for you...

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

Re: BMP Not getting new files

Post by Marcus Tettmar » Fri Jul 22, 2016 8:59 am

Sounds like it is not overwriting then. Will check this out. In the mean time deleting the DEF folder before compiling should do the job.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

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

Re: BMP Not getting new files

Post by Marcus Tettmar » Fri Jul 22, 2016 9:04 am

I have replicated this and I see now why this happens. It's an inadvertent side affect of a safety feature - we did not want to overwrite any existing folder that may already have been in the target folder with the same name - e.g. you may already have a DEF folder which you would not want overwritten. Of course this means it's not being updated on second compile either. I guess what we need is to "merge" with any preexisting folder instead and/or prompt/warn the user. Will get this sorted!
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

macroman
Pro Scripter
Posts: 93
Joined: Mon Jun 02, 2014 5:32 am

Re: BMP Not getting new files

Post by macroman » Fri Jul 22, 2016 12:40 pm

awesome! Thank you. If I could only remember this bug, I would just copy the new BMP's myself... but there are days you just forget and spent hours trying to figure why it couldn't find the green arrow :)

macroman
Pro Scripter
Posts: 93
Joined: Mon Jun 02, 2014 5:32 am

Re: BMP Not getting new files

Post by macroman » Tue Aug 23, 2016 10:52 am

Just wasted another 2-3 hours debugging, then i realized it didn't have the new bmps that didn't get copied over. :( when will you have this update available for download?

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

Re: BMP Not getting new files

Post by Marcus Tettmar » Tue Aug 23, 2016 3:21 pm

It's fixed in dev. So should be soon. But there's a few other things we'd like to get into this update. The summer holiday period has delayed us a little.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

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