As we know,we can use Autohokey H to regsvr in window,Then we Can use ahk through Com.Here is the function in C#:
addfile/addscript/ahkassign/ahkdll/ahkexec/ahkexecute/ahklabel/ahkgetvar...and so on.
But what I want is how to assign a hotkey to C#'s User defind Function with ahk.
such as below :
Code: Select all
Private Sub Button1_Click(sender As Object, e As RibbonControlEventArgs) Handles Button1.Click
Dim frm = New Form1()
frm.Show()
End Sub
Code: Select all
<^<+<#!numpad4::
Dim frm = New Form1()
frm.Show()
return
Thx very Much for the help!