~schube/autoit-advanced-descriptor

an NPM package to generate AutoIT advanced window descriptions
add license headers to source files
change license to AGPL-3.0-or-later

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~schube/autoit-advanced-descriptor
read/write
git@git.sr.ht:~schube/autoit-advanced-descriptor

You can also use your local clone with git send-email.

#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:

key type AutoIT key
title String TITLE
className String CLASS
regexpTitle String REGEXPTITLE
regexpClassName String REGEXPCLASS
instance Integer INSTANCE
active Boolean ACTIVE
last Boolean LAST
x Integer X
y Integer Y
w Integer W
h Integer H