HotKeyIt / ahkdll

AutoHotkey_H
Mozilla Public License 2.0
266 stars 62 forks source link

can't write propertie while ahkExec #5

Closed zwerg44 closed 10 years ago

zwerg44 commented 10 years ago

Hello. I'm using 1.1.13 Win32w version, which I get from http://www.autohotkey.net/~HotKeyIt/AutoHotkey/files/AutoHotkey-txt.html

I used ahktextdll and defined ahk class and it's instance. Then, on some event, I use ahkExec to write some values to instance properties and looks like properties aren't changed. This may possibly be a bug.

Priviously i succsessfully used 1.1.10 Win32w.

I create class like this: ;================== wr := new writer() class writer { New() { this.foo := "" } Delete() {...} } ;there are also hotkeys holding execution ;==================

I acces properties like this: ;================== wr.foo := "bar" tmp := wr.foo msgbox %tmp% ;==================

HotKeyIt commented 10 years ago

When this is your script then you are missing #Persistent, otherwise script exits straight away.

If this still errors, try latest version: https://github.com/HotKeyIt/ahkdll-v1-release