Presentation is loading. Please wait.

Presentation is loading. Please wait.

Intro to Classes in AutoHotkey

Similar presentations


Presentation on theme: "Intro to Classes in AutoHotkey"— Presentation transcript:

1 Intro to Classes in AutoHotkey

2 Why use a class? Reusability / modularity Organized code Isolated

3 Declaration and structure
class className { } Contents class className { var1 := "string 1" static var2 := "string 2" method(){ } }

4 Construction, Destruction, and Meta-Functions
__New([var1, ...]) __Delete() __Get([Key, Key2, ...]) __Set([Key, Key2, ...], Value) __Call(Name [, Params...])

5 Properties Property[] { get { return ... } set { return ... := value

6 Nested and Extended Classes
class class1 { var1 := "class1" } class class2 extends class1 { var2 := "class2" class class3 { var3 := "class3" } }

7 Resources Classes Tutorials and Videos on Classes / Objects
AHK Documentation: Classes Samardac: Classes in AHK, Basic tutorial GeekDude: Classes in AHK, a Dissection (Advanced) AboutScript: Intro to Objects in AutoHotkey on YouTube Lynda.com overview: Object Oriented language (not AHK specific but great review) why use classes 1) multiple times but operate indepdently 2) group methods together (simliar like library/Include). Don't use this., don't instantiate lexicos- way to flag if method not inside class. set up throwsnonexistantmethod v2 webinar- ask Lexicos to attend & discuss plan compile with ahk then use codesign then use nullsoft- to deal with UAC. Creates install & uninstall


Download ppt "Intro to Classes in AutoHotkey"

Similar presentations


Ads by Google