Search found 1 match

by minhthanh91
22 Nov 2021, 08:41
Forum: Tutorials (v1)
Topic: Classes in AHK, Basic tutorial.
Replies: 35
Views: 105825

Re: Classes in AHK, Basic tutorial.

when u want to call the constructor __New() of the mother-class: use base.__New() in child's: #SingleInstance force ;Declare Class Class Window{ __New(){ this.task1 := "eat" } } Class Notepad extends Window{ __New(){ base.__New() } } ;Create Instance SomeNote:= New Notepad MsgBox, % SomeNote.task1 ;...

Go to advanced search