# ActionDetails_Str

VALUE:
cd C:\Tesseract-OCR && tesseract [%FilePath].png [%FilePath]


VALUE:
The OCR generated no output indicating that the file was not found!

File path: [%FilePath]


VALUE:
[^Tab]Foxtrot and Tesseract[^Enter][^Tab(2)]Working together[^Enter]Is quite cool


VALUE:
cd C:\Tesseract-OCR && tesseract [%FilePath].png [%FilePath] tsv --l eng


VALUE:
C:\pyautogui_Screen_v0.3\pyautogui_Screen_v0.3.exe -command_click "click" -position "[%Coordinate_X], [%Coordinate_Y]"


# Actions

NOTES:
Create a variable to store the output of the DOS Command actions


NOTES:
Create a variable to manage the file path


NOTES:
Delete the OCR output file after reading it


NOTES:
Set the file path to be used through the OCR process


NOTES:
Open Notepad if it is not already opened


NOTES:
Resize the Notepad window to something appropriate
Remember, the smaller, the faster OCR - but everything needs to fit in the window, of course!


NOTES:
Take a screenshot of the Notepad application


NOTES:
Change the file extension from ".tsv" to ".txt" to make it possible to load in the data as a list


NOTES:
Delete the temporary text file after loading it


NOTES:
Create variable with the word to work with


NOTES:
Set the variable to the word to work with


NOTES:
Perform the click using pyautogui_Screen
Make sure to validate the path to the exe file


NOTES:
Create variable to retrieve the left-coordinate of the word


NOTES:
Create variable to retrieve the top-coordinate of the word


NOTES:
Create variable to retrieve the width of the word


NOTES:
Create variable to retrieve the height of the word


NOTES:
Create variable to manage the x-coordinate of the click


NOTES:
Create variable to manage the y-coordinate of the click


NOTES:
Retrieve the left-coordinate using lookup


NOTES:
Retrieve the top-coordinate using lookup


NOTES:
Round the x-coordinate to have zero decimals


NOTES:
Round the y-coordinate to have zero decimals


