IPT. / NPT. - If Pattern Condition

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > ! User-Macros > PAT. - Pattern Recognition Command >

IPT. / NPT. - If Pattern Condition

IPT. / NPT.

Previous Top Next


IPT. / NPT.

Conditional execution based on screen patterns

 

Syntax

 

IPT.Subcommand|Parameters

NPT.Subcommand|Parameters

 

Description

 

IPT. (If Pattern True) - Continue execution if condition is TRUE, otherwise jump to end of block (EIF).

 

NPT. (Not Pattern True) - Continue execution if condition is FALSE, otherwise jump to end of block. This is the inverse of IPT.

 

 

Subcommands

 

IPT.TextExists|Text

Continue if text exists on screen.

 

IPT.TextNotExists|Text

Continue if text does NOT exist on screen.

 

IPT.AtPosition|Text|X|Y|Tolerance

Continue if text found at position (X,Y) within tolerance.

 

IPT.SymbolAt|X|Y|W|H

Continue if symbol detected in region (X,Y,W,H).

 

IPT.Initialized

Continue if PAT library is initialized.

 

 

Example

 

PAT.Init

PAT.SetFont|Tahoma|12

 

' Check if OK button exists

IPT.TextExists|OK

 MBX.OK button found!

EIF.

 

' Wait for Loading to disappear

:Lab_Wait

NPT.TextExists|Loading...

 SLP.100

 JMP.Lab_Wait

EIF.

 

See Also

 

JPT. - Jump if Pattern

PAT. - Pattern Recognition