Created
April 11, 2012 05:15
-
-
Save tinku99/2357132 to your computer and use it in GitHub Desktop.
using autohotkey.dll from csharp / .net
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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