AI and Recognition Commands

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

AI and Recognition Commands

PAT. - Pattern Recognition Dispatcher

Top TRA.


MiniRobotLanguage (MRL)

 

PAT. Command

Pattern recognition, capture, and click workflow

 

Intention

PAT. is a dispatcher command for SymbolRecognition features. It controls initialization, window mode, preprocessing, region handling, text finding, waiting, screen capture, and click actions.

 

Most operations require a ready SymbolRecognition runtime and usually start with PAT.Init.

 

Syntax

PAT.SubCommand[|P1][|P2][|...]

 

Common SubCommands

PAT.Init[|CacheSize]

PAT.Shutdown

PAT.IsInit|$$RET

PAT.UseScreen

PAT.UseTopWindow

PAT.UseChildWindow

PAT.SetFont|FontName[|FontSize]

PAT.SetConf|0.80

PAT.SetRegion|X|Y|W|H

PAT.FindText|Text[|Font][|Size][|Conf][|$$RET]

PAT.FindInRegion|Text[|Font][|Size][|Conf][|$$RET]

PAT.GetPos|Text|$$X|$$Y[|$$CONF]

PAT.Exists|Text|$$RET

PAT.Count|Text|$$RET

PAT.WaitFor|Text[|TimeoutMs][|PollMs]

PAT.WaitVanish|Text[|TimeoutMs]

PAT.Capture|X|Y|W|H|File

PAT.CaptureFull|File

PAT.CaptureWindow[|File]

PAT.CaptureRegion|X|Y|W|H[|File]

PAT.SaveBuffer|File

PAT.ReleaseBuffer

PAT.HasBuffer|$$RET

PAT.ClickText|Text[|Type]

PAT.DoubleClickText|Text

PAT.RightClickText|Text

PAT.HooverText|Text

PAT.Version|$$RET

PAT.LastError|$$RET

 

Example

USM.10|?exeloc\PAT_Error.log

PAT.Init|256

PAT.UseTopWindow

PAT.SetConf|0.80

PAT.FindText|Save|Arial|14|0.80|$$POS

PAT.Exists|Save|$$EX

PAT.Shutdown

ENR.

 

See also

TRA. - Unified Trading Dispatcher

USM. - Use Silent Mode