|
Post by Johnc on Nov 9, 2018 20:17:43 GMT
Maybe nice to add a new MMM action to take a screenshot and save it as 001, 002.jpg etc... Currently one can do it with print-screen or snipping tool but a built-in action in MMM makes it so much easier! No need to find a place to paste it! Thanks.
|
|
|
Post by Steve on Nov 11, 2018 22:56:26 GMT
Hi John, Thanks for the suggestions. Keep em coming! I wrote up a little routine I think you will like main.mmmacro1 | FOR | EACH | LINE IN | D:\Macro\grabscreen.mmmacro | RUN grabscreen.mmmacro1 | X | X | 1000 | Keypress Alt+ | prtsc 2 | RUN ACTION | RUN PROGRAM | mspaint.exe 3 | IF | WINDOW TITLE | Untitled - Paint | EXIST | CONTINUE 4 | RUN ACTION | SELECT WINDOW BY NAME | Untitled - Paint 5 | X | X | 1000 | Keypress ctrl+ | v 6 | X | X | 1000 | Keypress Alt+ | f 7 | X | X | 1000 | Keypress s 8 | X | X | 1000 | Keypress %RANDOM_1-1000% 9 | X | X | 1000 | Keypress ENTER 10 | X | X | 1000 | Keypress Alt+ | f 11 | X | X | 1000 | Keypress x
|
|
|
Post by Johnc on Nov 12, 2018 21:24:07 GMT
Hey this is such a great idea Steve! Thank you so much! This will work for the short term but it would be handy if this is a built-in Action for ease of use and for speed of execution. Thanks!
Rather than using a 3-digit random number as the file name for the captured png, I am using a counter of initial value=1000 which is stored in screencapindex.txt. This will give me a sequential file name which is easier to track.
So the Grabscreen.mmmacro was slightly modified as follows:
0 | RUN ACTION | INPUT FROM FILE | INTEGER4::NO_REFRESH::C:\Users\John\Pictures\screencapindex.txt 1 | X | X | 1000 | Keypress Alt+ | prtsc 2 | RUN ACTION | RUN PROGRAM | mspaint.exe 3 | IF | WINDOW TITLE | Untitled - Paint | EXIST | CONTINUE 4 | RUN ACTION | SELECT WINDOW BY NAME | Untitled - Paint 5 | X | X | 1000 | Keypress ctrl+ | v 6 | X | X | 1000 | Keypress Alt+ | f 7 | X | X | 1000 | Keypress s 8 | X | X | 1000 | Keypress %INTEGER4% 9 | X | X | 1000 | Keypress ENTER 10 | X | X | 1000 | Keypress Alt+ | f 11 | X | X | 1000 | Keypress x 12 | RUN ACTION | DEFINE INTEGER VARIABLE | %INTEGER4%::+1 13 | RUN ACTION | OUTPUT TO FILE | C:\Users\John\Pictures\screencapindex.txt::OVERWRITE::%INTEGER4%
|
|