- attached com.ahk
Proposal: COM support.
Issue #42
closed
COM support is one of the most widely used features of AHK. Forum search for ‘COM’ yields 73825 results.
Comments (5)
-
reporter -
reporter Proposals for providing COM support to Keysharp that might not involve re-inventing the wheel:
- Update the attached ‘COM.ahk’ (very old, by sean) to AHK2 and then to Keysharp syntax. The lib consists mainly of functions with DllCall (no classes), with an example shown below.
COM_CreateObject(CLSID, IID = "", CLSCTX = 5) { DllCall("ole32\CoCreateInstance", "Uint", SubStr(CLSID,1,1)="{" ? COM_GUID4String(CLSID,CLSID) : COM_CLSID4ProgID(CLSID,CLSID), "Uint", 0, "Uint", CLSCTX, "Uint", COM_GUID4String(IID,IID ? IID : IID=0 ? "{00000000-0000-0000-C000-000000000046}" : "{00020400-0000-0000-C000-000000000046}"), "UintP", ppv) Return ppv }
2. Implement same functionality in Keysharp using p/invoke to create methods analogous to the functions in COM.ahk.
-
reporter 3. Use NetOffice MIT-licensed libs for MS Office COM. Active - updated 5 days ago. NetOfficeFw
-
repo owner - changed status to resolved
COM support has been implemented.
-
repo owner - changed status to closed
COM support has been implemented.
- Log in to comment