InstanceVar In Class

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
aliztori
Posts: 117
Joined: 19 Jul 2022, 12:44

InstanceVar In Class

Post by aliztori » 02 Dec 2022, 15:32

Hello
I was working on classes and training when I realized that :
These declarations are evaluated each time a new instance of the class is created with the new keyword
https://www.autohotkey.com/docs/Objects.htm#Custom_Classes_var

But I thought that instance's behavior is such that when the class is called, they act every time

There is no way that I can write a

Code: Select all

InstanceVar := Expression
in my own class and every time I call the class it will be done (not as a new) Like (new instance of the class is created with the new keyword)?

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: InstanceVar In Class

Post by swagfag » 02 Dec 2022, 18:06

i suggest using google translate

aliztori
Posts: 117
Joined: 19 Jul 2022, 12:44

Re: InstanceVar In Class

Post by aliztori » 03 Dec 2022, 03:27

swagfag wrote:
02 Dec 2022, 18:06
i suggest using google translate
lol

Post Reply

Return to “Ask for Help (v1)”