Skip to content

Commit 7eb40d1

Browse files
authored
Update README.md
1 parent a751df4 commit 7eb40d1

1 file changed

Lines changed: 26 additions & 7 deletions

File tree

README.md

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,53 @@
11
# AutoItObject Internal
2-
Provides object creation via IDispatch interface in an attempt to add more OOP to AutoIt.
2+
Provides easy object creation via IDispatch interface.
33

4-
**Things to be added:**
4+
**Example**
5+
```
6+
#include "AutoItObject_Internal.au3"
7+
$myCar = IDispatch()
8+
$myCar.make = 'Ford'
9+
$myCar.model = 'Mustang'
10+
$myCar.year = 1969
11+
$myCar.__defineGetter('DisplayCar', DisplayCar)
12+
13+
Func DisplayCar($oThis)
14+
Return 'A Beautiful ' & $oThis.parent.year & ' ' & $oThis.parent.make & ' ' & $oThis.parent.model
15+
EndFunc
16+
17+
MsgBox(0, "", $myCar.DisplayCar)
18+
```
19+
20+
**TODO:**
521
* Garbage collection
622
* ~Method support~ **_Added in v0.1.2_**
723
* ~Support for more/all AutoIt variable-types~ **_Added in v1.0.0_**
824
* ~Accessors~ **_Added in v0.1.0_**
925
* Inheritance
1026
* ~equivalent of @error and @extended~ **_Added in v1.0.0_**
1127

28+
29+
**Methods:**
30+
1231
`__defineGetter("property", Function)`
1332

14-
set the get accessor
33+
set the get accessor
1534

1635

1736
`__defineSetter("property", Function)`
1837

19-
set the set accessor
38+
set the set accessor
2039

2140

2241
~~`__defineMethod("Property", "Function")`~~ deprecated in v1.0.0
2342

24-
~~Set a function as a property value~~
43+
~~Set a function as a property value~~
2544

2645

2746
`__unset("property")`
2847

29-
delete a property from the object
48+
delete a property from the object
3049

3150

3251
`__lock()`
3352

34-
prevents creation/changing of any properties, except values in already defined properties. To prevent value change of a property, use `__defineSetter`
53+
prevents creation/changing of any properties, except values in already defined properties. To prevent value change of a property, use `__defineSetter`

0 commit comments

Comments
 (0)