Add autohotkey

This commit is contained in:
qianlifeng
2015-01-29 18:26:50 +08:00
parent 36ce0c8271
commit 2b1e343186
7 changed files with 93 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
using AutoHotkey.Interop;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Wox.Infrastructure.Hotkey
{
public class AHKHotkey : IHotkey
{
public bool RegisterHotkey(string hotkey, Action action)
{
AutoHotkeyEngine ahk = AHKHotkeyEngineFactory.CreateOrGet("default");
ahk.ExecRaw(string.Format("{0}::MsgBox, ssss!",hotkey));
return true;
}
}
}