Post by Steve on Jun 17, 2022 5:31:08 GMT
Whats been added to the update?
New Condition:
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 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 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.
New Condition:
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 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 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.