Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 1.13 KB

README.org

File metadata and controls

31 lines (26 loc) · 1.13 KB

AutoIT advanced descriptor

This module exposes a single function which produces AutoIT advanced descriptors as described by the AutoIT documentation. The descriptor function has a single object parameter whose optional keys are used as the contents of the descriptor. For example,

import { descriptor } from 'autoit-advanced-descriptor'

descriptor({
  className: 'Notepad',
  instance: 2
}) === '[CLASS:Notepad; INSTANCE:2]'

The following keys are supported:

keytypeAutoIT key
titleStringTITLE
classNameStringCLASS
regexpTitleStringREGEXPTITLE
regexpClassNameStringREGEXPCLASS
instanceIntegerINSTANCE
activeBooleanACTIVE
lastBooleanLAST
xIntegerX
yIntegerY
wIntegerW
hIntegerH