I'm new to Autohotkey and want to use it to send keys to an inactive window.
The script below does exactly what I need.
Code: Select all
settitlematchmode,2
controlsend,,{Escape down}{Escape up}, VLC
If so what I have tried is to first register the 32 bit autohotkey.dll which registered correctly.
But as soon as I try using the VBA code:
Code: Select all
Sub atest()
Dim AHK As Object
Set AHK = CreateObject("AutoHotkey.Script")
AHK.ahktextdll ("MsgBox Hello World!" & Chr(13) & "ExitApp")
End Sub
Can anyone help me please?