* Mini Mouse Macro 8.4 (17 June 2022) New Condition and Action: 1. New Condition 'OCR' The OCR (Optical Character Recognition) condition allows evaluation and detection of text within saved images and/or areas of the desktop screen. More info about OCR at https://www.turnssoft.com/conditions#ocr Examples: 1 | IF | OCR | From image D:\File\pics\ocr\phrase\here comes the sun.PNG::Lang eng - English::To string OCR | TRUE | OUTPUT TO FILE | D:\File\ocr_text.txt::APPEND_NEWLINE::%OCR% The example above reads the text from an image, stores the value in a variable named OCR, and outputs the value of the variable to a file. 1 | IF | OCR | from image D:\File\pics\ocr\days\monday.png::to string OCR | TEXT IS | Monday | MESSAGE PROMPT | The text is Monday The example above reads the text from an monday.png image file and if the text is "Monday" then throws a MESSAGE PROMPT "The text is Monday". 1 | IF | OCR | At location [X:701 Y:291 W:100 H:100]::to string OCR | CHANGES::amount 2::timeout 5::delay 1 | MESSAGE PROMPT | CHANGE DETECTED: %OCR% The example above we scan a location of the screen, capture the text, and detect if any changes occur to the text in that region. IF we have 2 changes over 5 seconds with a 1 second delay in between are condition evaluates to true and we throw up a MESSAGE PROMPT "CHANGE DETECTED: %OCR%". %OCR% is the variable name we have chosen to capture the text. 2. Plugins page - 'Home - Plugins' Plugins allow the modular plugin file downloads for conditions that required them. Currently we have two plugin options being the OCR and MYSQL plugin downloads. More info at https://www.turnssoft.com/plugins Improvements: 1. The DETECT IMAGE action and condition has had a rewrite resulting in more accurate detection of on-screen images and mouse coords. 2. New dialogs for range catching across multiple conditions and actions. 3. New 'Variables' dialog to show and configure defined variables. 'Settings - Variables' tab and from the 'Macro - Variables' list. 4. Global background color configuration added at 'Settings - Options - Display Customization'. Dark mode now available! 5. Improvement to error handling around integer and decimal variable assignment. Invalid assignment without % markers is auto corrected. Fixes: 1. Fixed a bug with the Detect Image condition whereby copying the macro line resulted in an invalid paste. 2. Fixed a bug with the WAIT action whereby stopping the current macro would not allow the macro to restart until the wait ended. * Mini Mouse Macro 8.3.3 (19 March 2022) 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. More info at https://www.turnssoft.com/conditions#lastcondition IF | LAST CONDITION | EVALUATION | SUCCESSFUL | MESSAGE PROMPT | Last condition was successful 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 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. For more on dubug actions see https://www.turnssoft.com/conditions.html#debug. 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 https://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. Beta 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 ::to string '. For OCR to work it needs some companion files downloaded separately. Get these from here https://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