Can't to add auto-it to VB 2010 .Net 2010
My code:
Imports AutoItX3Lib
Public Class Form1
Dim cAutoit As New AutoItX3Lib.AutoItX3
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
If e.KeyCode = Keys.I Then
cAutoit.Send("!k")
End If
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class
I get "An error oc