#include <IE.au3>
#include <Tesseract.au3>
#include <MsgBoxConstants.au3>
#include <Math.au3>
#include <FileConstants.au3>
#include <StringConstants.au3>
#include <File.au3>
#include <ScreenCapture.au3>
#include <sound.au3>
#Include <WinAPI.au3>
#include <Date.au3>
$OCR_Result = _TesseractScreenCapture(0,"",1,2,220,660,500,730,1)
$OCR_Result1 = _TesseractScreenCapture(0,"",1,2,220,660,500,730,1)
$OCR_Result2 = _TesseractScreenCapture(0,"",1,2,220,660,500,730,1)
$OCR_Result3 = _TesseractScreenCapture(0,"",1,2,220,660,500,730,1)
$sound = _SoundStatus("C:\ExpertAdvisorBuyAlert.wav")
while _nowtime < 3.30 pm
If $sound = True Then
if $OCR_Result1 > $OCR_Result2
EndIf
EndIf
Wend
Trying to ocr some values on chart in real time(once per minute) and buy/sell securities on basis of alert generated in my software.
I am struck onto few steps.
1. On Tesseract Screen Capture indentation parameters. How can we determine the exact parameters if I just want numeric values only.
2. The Tesseract Screen Capture generates and error Obj1 on line 185 which needs to be resolved.
3. Sometimes lines get overlapped with values. What to do in that case.
3. Detecting the sound as and when it approaches and then comparing the ocr values to decide on either buy or sell.
The values that needs to be fetched are encircled.