Skip to content

Instantly share code, notes, and snippets.

@tinku99
Created April 11, 2012 05:15
Show Gist options
  • Select an option

  • Save tinku99/2357132 to your computer and use it in GitHub Desktop.

Select an option

Save tinku99/2357132 to your computer and use it in GitHub Desktop.
using autohotkey.dll from csharp / .net
// early binding example
clr.AddReferenceToFileAndPath("drive:\\path\\to\\Interop.LibCOMServer.dll")
from LibCOMServer import CoCOMServerClass as AutoHotkey
ahk = AutoHotkey()
ahk.ahktextdll("msgbox hello world")
// late binding example
from System import Activator, Type
ahk = Activator.CreateInstance(Type.GetTypeFromProgID('AutoHotkey.Script'))
ahk.ahktextdll("msgbox")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment