I want to run a macro in MS visio with ahk script.
I tried several things, but it didn't work.. please help.
I tried this one
Code: Select all
visio.Run("removeStrikeThrough")
---------------------------
VisioTest_3.ahk
---------------------------
Error: 0x80020006
Specifically: Run
...
---> 041: visio.Run("removeStrikeThrough")
and this one
Code: Select all
COM_Init()
mVisio := COM_GetActiveObject("Visio.Application")
COM_Invoke(mVisio, "Run", "!" "removeStrikeThrough")
COM_Release(mVisio)
COM_Term()
MsgBox :
---------------------------
COM Error Notification
---------------------------
Function Name: "Run"
ERROR: No COM Dispatch Object!
()