Lots of us have used the "ScriptControl" object in Autoit to create simple classes using jScript, vbScript.
For example, I created a simple Car class in jScript.
#include "jsFunc.au3"
jsc('function Car(make,color,year){') ;Car class
jsc('this.make = make;') ;property
jsc('this.color = color;')
jsc('this.year = year;')
jsc('this.Info = function(){return this.year + " " + this.color + " " + this.make;}}')
$js.AddCode($jsCode) ;add code to the global module
Lots of us have used the "ScriptControl" object in Autoit to create simple classes using jScript, vbScript.
For example, I created a simple Car class in jScript.
#include "jsFunc.au3"
jsc('function Car(make,color,year){') ;Car class
jsc('this.make = make;') ;property
jsc('this.color = color;')
jsc('this.year = year;')
jsc('this.Info = function(){return this.year + " " + this.color + " " + this.make;}}')
$js.AddCode($jsCode) ;add code to the global module