Post by Steve on Mar 14, 2022 0:59:46 GMT
Whats been added to the update?
New Condition:
Example 1:
1 | IF | WINDOW TITLE | Start Here | EXIST | SELECT WINDOW BY NAME | Start Here
2 | IF | LAST CONDITION | EVALUATION | SUCCESSFUL | MESSAGE PROMPT | The Window Title was found successfully
Improvements:
1. Classic %STRING%, %INTEGER%, %BOOLEAN%, %DECIMAL% variables extended to 100 value entries.
2. The Mouse Movement action now supports multiple screen displays.
3. Some error handling errors have been cleaned up.
4. Loading a macro via cmd line args whilst also having 'Load Last Saved Macro' enabled will now only load the cmd line argument macro file.
Fixes:
1. Fix for custom named variable math chaining of integer and decimal values.
2. Fixed an issue whereby the Mouse Movement action failed when called from an IF condition (BZ26 www.turnssoft.com/bugtrack.html#bugs)
3. Fixed an issue whereby multiple nested FOR I looping carried the initial loop counter for the first iteration.
4. Fixed an issue whereby entry edits would trim 'Key Down/Up' trailing text from a line.
New Condition:
1. New Condition 'Last Condition'
This condition is used to evaluate if the last processed condition evaluated to true (successful) or false (unsuccessful). It's useful for macro flow control, as an alternative to ELSE conditions, or for macro debugging.
IF | LAST CONDITION | EVALUATION | SUCCESSFUL | MESSAGE PROMPT | Last condition was successful
IF | LAST CONDITION | EVALUATION | UNSUCCESSFUL | MESSAGE PROMPT | Last condition was unsuccessful
IF | LAST CONDITION | EVALUATION | UNSUCCESSFUL | MESSAGE PROMPT | Last condition was unsuccessful
Example 1:
1 | IF | WINDOW TITLE | Start Here | EXIST | SELECT WINDOW BY NAME | Start Here
2 | IF | LAST CONDITION | EVALUATION | SUCCESSFUL | MESSAGE PROMPT | The Window Title was found successfully
Example 2:
* | File_Delete_Start
1 | RUN ACTION | WAIT SECONDS | 1
2 | IF | FILE | D:\Macro\File\props.txt | EXIST | FILE DELETE | D:\Macro\File\props.txt
3 | IF | LAST CONDITION | EVALUATION | UNSUCCESSFUL | GOTO MACRO LINE | File_Delete_Start
* | File_Delete_Start
1 | RUN ACTION | WAIT SECONDS | 1
2 | IF | FILE | D:\Macro\File\props.txt | EXIST | FILE DELETE | D:\Macro\File\props.txt
3 | IF | LAST CONDITION | EVALUATION | UNSUCCESSFUL | GOTO MACRO LINE | File_Delete_Start
2. New Debug action added 'RECORD NUMBERPAD'
This debug action is useful for record debugging and will enable/disable interpretive numpad recording.
See the changes to default numpad recording under improvements below.
Improvements:
1. Classic %STRING%, %INTEGER%, %BOOLEAN%, %DECIMAL% variables extended to 100 value entries.
2. The Mouse Movement action now supports multiple screen displays.
3. Some error handling errors have been cleaned up.
4. Loading a macro via cmd line args whilst also having 'Load Last Saved Macro' enabled will now only load the cmd line argument macro file.
5. Numberpad recording now by default will record the true numpad press and not MMMs interpretive numpad catching.
This replaces a recording of '1' with 'numpad1' and so on up to numpad9. When recording with numlock on the numpad functions (end, pgup, etc) are recorded as usual.
To switch back to the old style MMM interpretive numpad recording run the 'RECORD NUMBERPAD' debug option prior to recording.
Fixes:
1. Fix for custom named variable math chaining of integer and decimal values.
2. Fixed an issue whereby the Mouse Movement action failed when called from an IF condition (BZ26 www.turnssoft.com/bugtrack.html#bugs)
3. Fixed an issue whereby multiple nested FOR I looping carried the initial loop counter for the first iteration.
4. Fixed an issue whereby entry edits would trim 'Key Down/Up' trailing text from a line.
Extra:
1. OCR (Image to text) has been added to this update in a beta form and will not be fully rolled out until the next update (8.4).
To access OCR manually enter the OCR action. The command is expecting 'from image <image path>::to string <variable>'.
For OCR to work it needs some companion files downloaded separately. Get these from here www.turnssoft.com/ocr.html and follow the instructions to add these for MMM.
Use the example below as a reference where sample1.png is an image containing the text 'working':
1 | RUN ACTION | OCR | from image G:\mmm\ocr\sample1.png::to string OCR
2 | RUN ACTION | MESSAGE PROMPT | %OCR%::OCR variable::0::OK
3 | IF | STRING VARIABLE | %OCR% | CONTAINS -C | working | MESSAGE PROMPT | %OCR%::OCR variable - FOUND::0::OK
2 | RUN ACTION | MESSAGE PROMPT | %OCR%::OCR variable::0::OK
3 | IF | STRING VARIABLE | %OCR% | CONTAINS -C | working | MESSAGE PROMPT | %OCR%::OCR variable - FOUND::0::OK