Code: Select all
Dim AhkCom As AutoHotkey.CoCOMServer
Set AhkCom = New AutoHotkey.CoCOMServer
AhkCom.ahktextdll
AhkCom.ahkFunction "msgbox", "hello"
what am I doing wrong?
Code: Select all
Dim AhkCom As AutoHotkey.CoCOMServer
Set AhkCom = New AutoHotkey.CoCOMServer
AhkCom.ahktextdll
AhkCom.ahkFunction "msgbox", "hello"
Code: Select all
Dim AhkCom As AutoHotkey.CoCOMServer
Set AhkCom = New AutoHotkey.CoCOMServer
AhkCom.ahktextdll
AhkCom.ahkExec "msgbox", "hello"
Code: Select all
%A_ScriptDir%\Lib\ ; Local library - requires AHK_L 42+.
%A_MyDocuments%\AutoHotkey\Lib\ ; User library.
path-to-the-currently-running-AutoHotkey.exe\Lib\ ; Standard library.
Code: Select all
dllpath:=A_AhkDir "\AutoHotkey.dll"
DllCall("LoadLibrary","Str",dllpath) ; Load the AutoHotkey module.
DllCall(dllpath "\ahktextdll","Str","#Persistent`nMyFunc(param){`nSleep 10000`nMsgBox `% param`n}","Str","","CDecl") ; start a new thread, just the function.
Msgbox % DllCall(dllpath "\ahkFunction","Str","MyFunc","Str","Hello World!","CDecl Str") ; call the function.
Code: Select all
Dim AhkCom As AutoHotkey.CoCOMServer
Set AhkCom = New AutoHotkey.CoCOMServer
AhkCom.ahktextdll
AhkCom.ahkFunction("MsgBox", "hello")
Code: Select all
%A_ScriptDir%\Lib\
Users browsing this forum: No registered users and 320 guests