Location

WWW

Interests

There has been many questions about using tesseract of late. Here is a very basic example which works for me, along with the exact version of standalone tesseract executable and English language data used I found it some time ago at a time I thought I needed it, I do not recall from where. $ImageToReadPath = @ScriptDir & "\image.bmp"
$ResultTextPath = @ScriptDir & "\Result"
$OutPutPath = $ResultTextPath & ".txt"
$TesseractExePath = @ScriptDir & "\Tesseract.exe"
ShellExecuteWait($TesseractExePath, '"' & $ImageToReadPath & '" "' & $ResultTextPath & '"', "", "", @SW_HIDE)
If @error Then
Exit MsgBox(0, "Error", @error)
EndIf
MsgBox(0, "Result", FileRead($OutPutPath))
FileDelete($OutPutPath)Some Answers: The files contained in the download, only support English language. From the only documentation I got with this version... Original Binaries and Source can be found here:
http://code.google.com/p/tesseract-ocr/I do not know where to get other languages support. I do not know if there is a later standalone version. I do not know why it does not read your image accurately. It does not have a virus in it. You can search the forums or internet to learn how to create / cut / copy / paste, or otherwise manipulate your own images.
TesseractExample.zip

Hi.
When I click 'open this script' in AutoIt Help the example isn't opening. I tried this (FixHelpFileExamples.au3):
https://www.autoitscript.com/forum/topic/68828-opening-an-example-inside-autoitchm-in-scite/?do=findComment&comment=506522
All is set. But 'open this script' not working. I tried that (batchfile):
https://www.autoitscript.com/forum/topic/188272-resolved-random-failure-of-help-to-open-examples/
This isn't working too.
What I wonder if my mouse is over 'Copy to clipboard' my cursor is changing to a hand, showing there is a link. If I do the same over 'Open this Script' then mouse is showing the hand for very short time and then getting back to show the arrow. So if I move slowly the cursor over this link it's 'blinking' hand and arrow. What could this be?
Regards, Conrad

Several questions around the forum get asked repeatedly:
How to avoid false-positive Anti-Virus detection? Answered by AutoIt god himself
How to make AutoIt software safe from hacking?
How to prevent AutoIt software being de-compiled?
How to prevent exposure of native AutoIt code?
The general answers all go in the direction of (a) can't be done or (b) make it an .a3x script.
The Wiki contains a single entry under "compiler directives" and the Help File contains mainly compiler info, with this note
Also see this thread.
So I thought I would make a little demo to actually show how it works.
Here are the 2 scripts. The a3x_demo.zip file contains these 2, plus the compiled .a3x file and the .EXE
The body
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Outfile_type=a3x
#AutoIt3Wrapper_Outfile=a3x_demo.a3x
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.14.2
Author: Skysnake
Script Function:
Demonstates working of a3x
Instructions
Code as normal
Set Compiler option to .a3x as per Help File
Compile
Note output is (a) .a3x file,
(b) now compile wrapper to make .exe file
The compiled .a3x is included inside the .exe.
To demonstrate, copy .exe to any new location and run. :)
#ce ----------------------------------------------------------------------------
; Script Start
#include <MsgBoxConstants.au3>
MsgBox($MB_SYSTEMMODAL, "a3x demo", "This message box is called from an a3x pre-compiled script " & @CRLF & "will timeout after 10 seconds or select the OK button.", 10)
; code ends
The wrapper
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Outfile=a3x_wrapper.exe
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.14.2
Author: Skysnake
Script Function:
Wrapper for .a3x demo
the INCLUDE line below forces the .a3x to be included in the new .EXE
other option is to use FileIsntall and then run the a3x_demo.a3x as an
external file
NOTE: required in order are the following steps
1. body .au3 script
2. compile body .au3 as .a3x file, include in wrapper
3. wrapper .au3 script, to become the .exe -> compile as .EXE
#ce ----------------------------------------------------------------------------
; Script Start -
#include "a3x_demo.a3x"
; code ends
DOWNLOAD: The ax3_demo.zip file
EDIT:
2016.07.08 Fixed typos

Hi everyone,
Perhaps, if you have a spare moment, you might like to take a look at >Wiki Examples Challenge Part 2 in the Developer Chat section, and do AutoIt and the contestants a favor, by examining the six Examples and casting a vote for one of them.
That would be really appreciated.
P.S. Jos, ETC, Melba23 - I hope you don't mind me posting this here and in General Help as well?

AutoIt is very useful and easy to use even for non-programmers (like me). Most of the examples in the Example section of the forum are somewhat advanced and not suitable for non-programmers who want to learn how to do simple things with AutoIt.
I've attached a few simple scripts with lots of comments to help beginners.
For more help on any function, press F1 when your curser is on the desired function name.
Example01_MouseSwitchButtons.au3
Example02_HelloWorld.au3
Example03_CopyPasteNotepadToWord.au3
Example04_CopyPasteNotepadToWord_2.au3
Example05_OpenLinkInIE.au3
Additional simple AutoIt examples can be downloaded from here: '?do=embed' frameborder='0' data-embedContent>>
P.S. Can somebody pin this topic?