|
Post by dozer2014 on Nov 20, 2018 16:03:45 GMT
Something is "Amos", but I have no idea what. Here's the EventLog. Still says that it's going to line 2, but doesn't. It even picks up the next file.
11/20/2018 08:55:02.05 AM : Event Log Cleared 11/20/2018 08:55:02.05 AM : Macro list cleared 11/20/2018 08:55:02.07 AM : Macro quick launch: C:\MYFILES\MMM\DT1 Print Favorites Test.mmmacro 11/20/2018 08:55:02.08 AM : Starting macro playback 11/20/2018 08:55:02.10 AM : Macro condition: 1 | FOR | EACH | FILE IN | C:\OPEN-OFFICE\ | DO 11/20/2018 08:55:02.12 AM : Macro condition - FOR Condition 11/20/2018 08:55:02.13 AM : Macro FOR EACH FILE IN in C:\OPEN-OFFICE\ do DO 11/20/2018 08:55:02.15 AM : Macro condition - C:\OPEN-OFFICE\: Found 11/20/2018 08:55:02.16 AM : Macro condition - Condition TRUE 11/20/2018 08:55:02.18 AM : Macro condition: 2 | RUN ACTION | RUN VIA CMD /c | START "" "C:\Program Files (x86)\OpenOffice 4\program\swriter.exe" "%file%" 11/20/2018 08:55:02.19 AM : Macro condition - Condition TRUE 11/20/2018 08:55:02.21 AM : Macro action - Running ACTION: RUN VIA CMD /c - CMD /C START "" "C:\Program Files (x86)\OpenOffice 4\program\swriter.exe" "C:\OPEN-OFFICE\DT1-A1-Compare.txt" 11/20/2018 08:55:02.23 AM : Macro event: 5 | 820 | 420 | 2000 | Left Click Down 11/20/2018 08:55:04.15 AM : Macro event: 6 | 820 | 420 | 100 | Left Click Release 11/20/2018 08:55:04.26 AM : Macro event: 7 | 1478 | 542 | 2000 | Left Click Down 11/20/2018 08:55:06.27 AM : Macro event: 8 | 1478 | 542 | 100 | Left Click Release 11/20/2018 08:55:06.40 AM : Macro event: 9 | 1550 | 601 | 2000 | Left Click Down 11/20/2018 08:55:08.41 AM : Macro event: 10 | 1550 | 601 | 100 | Left Click Release 11/20/2018 08:55:08.54 AM : Macro event: 11 | 1489 | 631 | 2000 | Left Click Down 11/20/2018 08:55:10.55 AM : Macro event: 12 | 1489 | 631 | 100 | Left Click Release 11/20/2018 08:55:10.66 AM : Macro event: 13 | 13 | 30 | 2000 | Left Click Down 11/20/2018 08:55:12.68 AM : Macro event: 14 | 13 | 30 | 100 | Left Click Release 11/20/2018 08:55:12.80 AM : Macro event: 15 | 67 | 217 | 2000 | Left Click Down 11/20/2018 08:55:14.82 AM : Macro event: 16 | 67 | 217 | 100 | Left Click Release 11/20/2018 08:55:14.94 AM : Macro event: 17 | 258 | 293 | 2000 | Left Click Down 11/20/2018 08:55:16.96 AM : Macro event: 18 | 258 | 293 | 100 | Left Click Release 11/20/2018 08:55:17.07 AM : Macro event: 19 | 258 | 293 | 500 | Left Click Down 11/20/2018 08:55:17.58 AM : Macro event: 20 | 258 | 293 | 100 | Left Click Release 11/20/2018 08:55:17.71 AM : Macro event: 21 | 432 | 538 | 2000 | Left Click Down 11/20/2018 08:55:19.72 AM : Macro event: 22 | 432 | 538 | 100 | Left Click Release 11/20/2018 08:55:19.87 AM : Macro event: 23 | 432 | 559 | 2000 | Left Click Down 11/20/2018 08:55:21.88 AM : Macro event: 24 | 432 | 559 | 100 | Left Click Release 11/20/2018 08:55:21.99 AM : Macro event: 25 | 667 | 668 | 2000 | Left Click Down 11/20/2018 08:55:24.02 AM : Macro event: 26 | 667 | 668 | 100 | Left Click Release 11/20/2018 08:55:24.13 AM : Macro event: 27 | 900 | 520 | 2000 | Left Click Down 11/20/2018 08:55:26.16 AM : Macro event: 28 | 900 | 520 | 100 | Left Click Release 11/20/2018 08:55:26.27 AM : Macro event: 29 | 1656 | 11 | 4000 | Left Click Down 11/20/2018 08:55:30.28 AM : Macro event: 30 | 1656 | 11 | 100 | Left Click Release 11/20/2018 08:55:30.41 AM : Macro condition: 31 | FOR | NEXT 11/20/2018 08:55:30.42 AM : Macro condition - FOR Condition 11/20/2018 08:55:30.44 AM : Macro FOR 0 in do NEXT 11/20/2018 08:55:30.46 AM : Macro FOR - FILE(1): C:\OPEN-OFFICE\DT1-A1-Favorites.txt 11/20/2018 08:55:30.47 AM : Macro action - Running ACTION: GOTO MACRO LINE - Macro line(2) 11/20/2018 08:55:30.49 AM : Macro condition - Condition TRUE 11/20/2018 08:55:30.50 AM : Macro playback finished
|
|
|
Post by Steve on Nov 21, 2018 4:11:34 GMT
Can you paste your code in again. Starting to loose track of the changes.
GOTO should not be used within a FOR block. It will not work as expected.
To answer your question on deleting files.. The FOR FILE LOOP runs against each file in the directory sequentially. Once it has finish each file the loop ends. The files do not need to be moved or deleted. A move is pretty much the same as a delete, as far as the FOR LOOP is concerned. I think deleting or moving is going to yield the same results. Can the deleting or moving of the processed files wait till after the for loop?
|
|
|
Post by dozer2014 on Nov 21, 2018 17:33:40 GMT
I see I've been demoted for whatever reason and also my last entry is gone. Whatever................... Here is the event log after removing the delete. Still doesn't loop.
11/21/2018 10:27:55.81 AM : Macro list cleared 11/21/2018 10:27:55.83 AM : Macro quick launch: C:\MYFILES\MMM\DT1 Print Favorites Test.mmmacro 11/21/2018 10:27:55.84 AM : Starting macro playback 11/21/2018 10:27:55.86 AM : Macro condition: 1 | FOR | EACH | FILE IN | C:\OPEN-OFFICE\ | DO 11/21/2018 10:27:55.88 AM : Macro condition - FOR Condition 11/21/2018 10:27:55.89 AM : Macro FOR EACH FILE IN in C:\OPEN-OFFICE\ do DO 11/21/2018 10:27:55.91 AM : Macro condition - C:\OPEN-OFFICE\: Found 11/21/2018 10:27:55.92 AM : Macro condition - Condition TRUE 11/21/2018 10:27:55.94 AM : Macro condition: 2 | RUN ACTION | RUN VIA CMD /c | START "" "C:\Program Files (x86)\OpenOffice 4\program\swriter.exe" "%file%" 11/21/2018 10:27:55.95 AM : Macro condition - Condition TRUE 11/21/2018 10:27:55.97 AM : Macro action - Running ACTION: RUN VIA CMD /c - CMD /C START "" "C:\Program Files (x86)\OpenOffice 4\program\swriter.exe" "C:\OPEN-OFFICE\DT1-A1-Compare.txt" 11/21/2018 10:27:55.98 AM : Macro event: 5 | 820 | 420 | 3000 | Left Click Down 11/21/2018 10:27:58.89 AM : Macro event: 6 | 820 | 420 | 100 | Left Click Release 11/21/2018 10:27:59.00 AM : Macro event: 7 | 1478 | 542 | 2000 | Left Click Down 11/21/2018 10:28:01.02 AM : Macro event: 8 | 1478 | 542 | 100 | Left Click Release 11/21/2018 10:28:01.14 AM : Macro event: 9 | 1550 | 601 | 2000 | Left Click Down 11/21/2018 10:28:03.16 AM : Macro event: 10 | 1550 | 601 | 100 | Left Click Release 11/21/2018 10:28:03.28 AM : Macro event: 11 | 1489 | 631 | 2000 | Left Click Down 11/21/2018 10:28:05.30 AM : Macro event: 12 | 1489 | 631 | 100 | Left Click Release 11/21/2018 10:28:05.41 AM : Macro event: 13 | 13 | 30 | 2000 | Left Click Down 11/21/2018 10:28:07.44 AM : Macro event: 14 | 13 | 30 | 100 | Left Click Release 11/21/2018 10:28:07.55 AM : Macro event: 15 | 67 | 217 | 2000 | Left Click Down 11/21/2018 10:28:09.56 AM : Macro event: 16 | 67 | 217 | 100 | Left Click Release 11/21/2018 10:28:09.69 AM : Macro event: 17 | 258 | 293 | 2000 | Left Click Down 11/21/2018 10:28:11.70 AM : Macro event: 18 | 258 | 293 | 100 | Left Click Release 11/21/2018 10:28:11.83 AM : Macro event: 19 | 258 | 293 | 500 | Left Click Down 11/21/2018 10:28:12.36 AM : Macro event: 20 | 258 | 293 | 100 | Left Click Release 11/21/2018 10:28:12.47 AM : Macro event: 21 | 432 | 538 | 2000 | Left Click Down 11/21/2018 10:28:14.48 AM : Macro event: 22 | 432 | 538 | 100 | Left Click Release 11/21/2018 10:28:14.61 AM : Macro event: 23 | 432 | 559 | 2000 | Left Click Down 11/21/2018 10:28:16.62 AM : Macro event: 24 | 432 | 559 | 100 | Left Click Release 11/21/2018 10:28:16.73 AM : Macro event: 25 | 667 | 668 | 2000 | Left Click Down 11/21/2018 10:28:18.75 AM : Macro event: 26 | 667 | 668 | 100 | Left Click Release 11/21/2018 10:28:18.86 AM : Macro event: 27 | 900 | 520 | 2000 | Left Click Down 11/21/2018 10:28:20.89 AM : Macro event: 28 | 900 | 520 | 100 | Left Click Release 11/21/2018 10:28:21.00 AM : Macro event: 29 | 1656 | 11 | 4000 | Left Click Down 11/21/2018 10:28:25.01 AM : Macro event: 30 | 1656 | 11 | 100 | Left Click Release 11/21/2018 10:28:25.14 AM : Macro condition: 31 | FOR | NEXT 11/21/2018 10:28:25.15 AM : Macro condition - FOR Condition 11/21/2018 10:28:25.17 AM : Macro FOR 0 in do NEXT 11/21/2018 10:28:25.18 AM : Macro FOR - FILE(1): C:\OPEN-OFFICE\DT1-A1-Favorites.txt 11/21/2018 10:28:25.20 AM : Macro action - Running ACTION: GOTO MACRO LINE - Macro line(2) 11/21/2018 10:28:25.21 AM : Macro condition - Condition TRUE 11/21/2018 10:28:25.23 AM : Macro playback finished
|
|
|
Post by dozer2014 on Nov 21, 2018 17:43:42 GMT
Sorry, I didn't realize we went to page 2. I haven't tried it yet, but I noticed you had specific commands for exiting a FOR LOOP early such as EXIT FOR and NEXT FOR. I did not put the GOTO in there. That has to be coming from the FOR | NEXT............
1 | FOR | EACH | FILE IN | C:\OPEN-OFFICE\ | DO 2 | RUN ACTION | RUN VIA CMD /c | START "" "C:\Program Files (x86)\OpenOffice 4\program\swriter.exe" "%file%" 5 | 820 | 420 | 3000 | Left Click Down 6 | 820 | 420 | 100 | Left Click Release 7 | 1478 | 542 | 2000 | Left Click Down 8 | 1478 | 542 | 100 | Left Click Release 9 | 1550 | 601 | 2000 | Left Click Down 10 | 1550 | 601 | 100 | Left Click Release 11 | 1489 | 631 | 2000 | Left Click Down 12 | 1489 | 631 | 100 | Left Click Release 13 | 13 | 30 | 2000 | Left Click Down 14 | 13 | 30 | 100 | Left Click Release 15 | 67 | 217 | 2000 | Left Click Down 16 | 67 | 217 | 100 | Left Click Release 17 | 258 | 293 | 2000 | Left Click Down 18 | 258 | 293 | 100 | Left Click Release 19 | 258 | 293 | 500 | Left Click Down 20 | 258 | 293 | 100 | Left Click Release 21 | 432 | 538 | 2000 | Left Click Down 22 | 432 | 538 | 100 | Left Click Release 23 | 432 | 559 | 2000 | Left Click Down 24 | 432 | 559 | 100 | Left Click Release 25 | 667 | 668 | 2000 | Left Click Down 26 | 667 | 668 | 100 | Left Click Release 27 | 900 | 520 | 2000 | Left Click Down 28 | 900 | 520 | 100 | Left Click Release 29 | 1656 | 11 | 4000 | Left Click Down 30 | 1656 | 11 | 100 | Left Click Release 31 | FOR | NEXT
|
|
|
Post by Steve on Nov 21, 2018 23:04:57 GMT
The star ranking thing is handled internally by the forum. It works by number of posts. I have nothing to do with that and don't change rankings for people. I did see early on that you were ranked high for only a couple of posts. I figured that it was a glitch with the forum and just ignored it. Perhaps the forum hosting provider was doing an update to the internals or something. I have no idea. Anyway, it doesn't really matter.
Right. I don't know what to tell you...I can run your macro in its entirety fine with out any problems. I have recreated your macro, created the c:\Open Office\ directory and populated that directory with 4 files. It loops through each of the files fine and does the mouse clicks in the middle. could this issue be related to file permissions? Could some of the files in your directory not be accessible to Mini Mouse Macro? Still though MMM should say something in the error log if that's the case.
I added 29 | RUN ACTION | MESSAGE PROMPT | %file%::%i%::0 before the last line 30 | FOR | NEXT and it displays the current file and the current loop count before going onto the next file. My event log streams each of the four loops it does for the 4 files in the directory.
Are you using the most current version of MMM, version 7.0?
I'm starting to think this issue must be something particular to your running environment. I can't put my finger on it. - We can loop with a basic macro, we tested that. - I have tested your syntax, it's fine. - The call to the command terminal with swriter.exe is a none issue and can not effect the running of the macro. It executes regardless of command line fault returning TRUE in the event log.
This has got me stumped. I'm starting to lean toward something in the OS such as access permissions on the files. Possibly it's swriter.exe not releasing the file when it opens it. swriter.exe is the only unknown within your syntax for me. I don't have that application and can't test that.
If you end up getting a solution let me know.
Good luck.
|
|
|
Post by dozer2014 on Nov 24, 2018 18:08:12 GMT
No problem with the stars :-) Just thought it was a little strange. I have actually been thinking on those lines myself, but I have no clue what could be causing it. I have 2 virtually identical machines networked with a WD My Cloud. Both are running Win 10 and are up to date. I have the security set up so I am the owner of both machines and the one and only supervisor. I can do just about anything I want to from either machine. I can't get into certain sub-directories from the opposite machine. Don't have any problems looping in BATCH.
I am running ver 7.0 of MMM and the macro I wrote, Loads and unloads swriter.exe for each file. I could try the same thing in WORD or possibly doing it all internally and not reloading it each time. That could be a real ***** getting the to mouse to click the right place at the right time doing it that way.
I'm not surprised that it works for you................ Lucky Me. It will be luck if I find it. This is not the first time this has happend to me. :-)
|
|
|
Post by dozer2014 on Nov 24, 2018 20:55:40 GMT
Found something................ It's not working real well because it's hard to make it pick up the right file with just the mouse. If I don't load the swriter.exe each time it works or I should say it loops. Doing it this way, it's really hard to get the right file to come up in the right place to load it. Right now, it just loads the same one over and over which doesn't work real well....
|
|
|
Post by dozer2014 on Nov 25, 2018 4:59:41 GMT
Got it fine tuned for the most part. The only problem now is, what's the appropriate way to start a .mmmacro from a BATCH file? I have a 10 sec. delay at the beginning of the macro to give me time to move the mmm window out of the way. There's no way it will work starting Open-Office with MMM, however, if you start Open-Office from a BATCH file and then start the macro from the BATCH file, it works.............
Let me get the running of the macro from BATCH problem resolved and I'll show ya...............
|
|
|
Post by Steve on Nov 25, 2018 5:25:03 GMT
|
|
|
Post by dozer2014 on Nov 25, 2018 20:42:02 GMT
Piece of cake.......... It's easy when you're know how. As the old saying goes, "there's more than one way to skin a cat". :-) I discovered that the mouse doesn't effect the programs window. Could move it, minimize it, etc. manually, but couldn't make it do it in a macro.
Here it is............... Works fine. Had to make some changes to make everything consistent, but it works. Thank Ya Kindly Steve. Still getting to know this program, but I like it and have recommended it to a number of my friends. Have a good one.
1 | 15 | 31 | 10000 | Left Click Down 2 | 15 | 31 | 100 | Left Click Release 3 | 58 | 82 | 2000 | Left Click Down 4 | 58 | 82 | 100 | Left Click Release 5 | 373 | 181 | 2000 | Left Click Down 6 | 373 | 181 | 100 | Left Click Release 7 | 284 | 400 | 2000 | Left Click Down 8 | 284 | 400 | 100 | Left Click Release 9 | 668 | 610 | 2000 | Left Click Down 10 | 668 | 610 | 100 | Left Click Release 11 | 1523 | 541 | 4000 | Left Click Down 12 | 1523 | 541 | 250 | Left Click Release 13 | 1544 | 595 | 2000 | Left Click Down 14 | 1544 | 595 | 100 | Left Click Release 15 | 1493 | 631 | 2000 | Left Click Down 16 | 1493 | 631 | 100 | Left Click Release 17 | 345 | 233 | 2000 | Left Click Down 18 | 345 | 233 | 100 | Left Click Release 19 | 345 | 233 | 2000 | Keypress Ctrl+ | a 20 | 334 | 93 | 2000 | Left Click Down 21 | 334 | 93 | 100 | Left Click Release 22 | 334 | 93 | 2000 | Keypress t 23 | 334 | 93 | 500 | Keypress i 24 | 334 | 93 | 500 | Keypress m 25 | 334 | 93 | 2000 | Keypress enter 26 | 334 | 93 | 2000 | Keypress Ctrl+ | home 27 | 344 | 233 | 2000 | Left Click Down 28 | 344 | 233 | 100 | Left Click Release 29 | 48 | 30 | 2000 | Left Click Down 30 | 48 | 30 | 100 | Left Click Release 31 | 119 | 338 | 2000 | Left Click Down 32 | 119 | 338 | 100 | Left Click Release 33 | 119 | 338 | 2000 | Keypress 1 34 | 119 | 338 | 1000 | Keypress 0 35 | 119 | 338 | 1000 | Keypress 0 36 | 1046 | 534 | 2000 | Left Click Down 37 | 1046 | 534 | 100 | Left Click Release 38 | 1058 | 765 | 2000 | Left Click Down 39 | 1058 | 765 | 100 | Left Click Release 40 | 1058 | 765 | 500 | Keypress home 41 | 1058 | 765 | 500 | Keypress down 42 | FOR | I | = | 1 TO 23 | NEXT 43 | 1058 | 765 | 500 | Keypress enter 44 | FOR | NEXT 45 | 1058 | 765 | 3000 | Keypress Ctrl+ | home 46 | 15 | 31 | 2000 | Left Click Down 47 | 15 | 31 | 100 | Left Click Release 48 | 76 | 214 | 2000 | Left Click Down 49 | 76 | 214 | 100 | Left Click Release 50 | 264 | 290 | 2000 | Left Click Down 51 | 264 | 290 | 100 | Left Click Release 52 | 264 | 290 | 250 | Left Click Down 53 | 264 | 290 | 100 | Left Click Release 54 | 415 | 539 | 2000 | Left Click Down 55 | 415 | 539 | 100 | Left Click Release 56 | 415 | 561 | 2000 | Left Click Down 57 | 415 | 561 | 100 | Left Click Release 58 | 662 | 670 | 2000 | Left Click Down 59 | 662 | 670 | 100 | Left Click Release 60 | 894 | 521 | 2000 | Left Click Down 61 | 894 | 521 | 100 | Left Click Release 62 | 63 | 166 | 2000 | Left Click Down 63 | 63 | 166 | 100 | Left Click Release 64 | RUN ACTION | RUN VIA CMD /c | Del /q "C:\OPEN-OFFICE\DT1-A1-Compare.txt 65 | FOR | EACH | LINE IN | C:\MYFILES\NOTEPAD\DT1MacroFiles-1.txt | DO 66 | 15 | 31 | 3000 | Left Click Down 67 | 15 | 31 | 100 | Left Click Release 68 | 58 | 82 | 2000 | Left Click Down 69 | 58 | 82 | 100 | Left Click Release 70 | 373 | 181 | 2000 | Left Click Down 71 | 373 | 181 | 100 | Left Click Release 72 | 284 | 400 | 2000 | Left Click Down 73 | 284 | 400 | 100 | Left Click Release 74 | 668 | 610 | 2000 | Left Click Down 75 | 668 | 610 | 100 | Left Click Release 76 | 1544 | 595 | 4000 | Left Click Down 77 | 1544 | 595 | 100 | Left Click Release 78 | 1493 | 631 | 2000 | Left Click Down 79 | 1493 | 631 | 100 | Left Click Release 80 | 345 | 233 | 2000 | Left Click Down 81 | 345 | 233 | 100 | Left Click Release 82 | 345 | 233 | 2000 | Keypress Ctrl+ | a 83 | 334 | 93 | 2000 | Left Click Down 84 | 334 | 93 | 100 | Left Click Release 85 | 334 | 93 | 2000 | Keypress t 86 | 334 | 93 | 500 | Keypress i 87 | 334 | 93 | 500 | Keypress m 88 | 334 | 93 | 2000 | Keypress enter 89 | 334 | 93 | 2000 | Keypress Ctrl+ | home 90 | 15 | 31 | 2000 | Left Click Down 91 | 15 | 31 | 100 | Left Click Release 92 | 76 | 214 | 2000 | Left Click Down 93 | 76 | 214 | 100 | Left Click Release 94 | 264 | 290 | 2000 | Left Click Down 95 | 264 | 290 | 100 | Left Click Release 96 | 264 | 290 | 250 | Left Click Down 97 | 264 | 290 | 100 | Left Click Release 98 | 415 | 539 | 2000 | Left Click Down 99 | 415 | 539 | 100 | Left Click Release 100 | 415 | 561 | 2000 | Left Click Down 101 | 415 | 561 | 100 | Left Click Release 102 | 662 | 670 | 2000 | Left Click Down 103 | 662 | 670 | 100 | Left Click Release 104 | 894 | 521 | 2000 | Left Click Down 105 | 894 | 521 | 100 | Left Click Release 106 | 63 | 166 | 2000 | Left Click Down 107 | 63 | 166 | 100 | Left Click Release 108 | RUN ACTION | RUN VIA CMD /c | Del /q "C:\OPEN-OFFICE\%line%" 109 | FOR | NEXT 110 | FOR | I | = | 1 TO 10 | NEXT 111 | 1656 | 11 | 1000 | Left Click Down 112 | 1656 | 11 | 100 | Left Click Release 113 | FOR | NEXT
|
|
|
Post by dozer2014 on Nov 26, 2018 18:32:16 GMT
Steve,
Just to let you know. I tested it one other way. Back to the original program that has no loops. Kept the first 2 documents and deleted the balance. Changed the | RUN ACTION | RUN VIA CMD /c | from running Open_Office to running a BATCH job that runs Open-Office since it worked before from a BATCH file. It loaded Open-Office, but when I put the loop in to loop the Enter key 23 times, the macro stops dead in it's tracks when it gets to it...... It would appear that the only way it works is if you load Open-Office from BATCH and then also run the Macro from BATCH and leave Open-Office "Open" until completion.
|
|