tinku99 wrote:
@HotkeyIt:
1. can you provide the type library for autohotkey com interface as well ?
Is that what you mean?
ComServer.idltinku99 wrote:
2. Is it possible to return safearrays (ComObjArray) using ahkgetvar(varname) ?
So we can do something like this from python:
Code:
code = '''
arr := ComObjArray(VT_VARIANT:=12, 3)
arr[0] := "Auto"
arr[1] := "Hot"
arr[2] := "key"
'''
dll.ahkExec(code)
dll.ahkgetvar("arr")
You can do it using AutoHotkey_H, not sure how to do in phyton

Code:
code=
(
#Persistent
arr := ComObjArray(VT_VARIANT:=12, 3)
arr[0] := "Auto"
arr[1] := "Hot"
arr[2] := "key"
)
dll:=AhkDllThread("X:\AutoHotkey.dll")
dll.ahktextdll(code)
Sleep 100
Alias(arr,dll.ahkgetvar("arr",1))
MsgBox % arr.0 arr.1 arr.2