Di.key_press?
di.focusgamewindow?
Those you cant call directly..
dim wrapper as new LOTREWrapper()
Dim DI as wrapper.Input
Then you can call the Input functions.
Oh ok the IInput interface in the wrapper dll allowed for direct implementation so i thought that was the intended use.
attached is the instanced version for those who need it. all it is for is to allow the use of the keys enumerator so you can select the key you want to send instead of looking up the short value.
Ill test this as soon as i get home.
Code: Select all
Public Class Input
Dim Wrapper As LOTROExtreme.LOTREWrapper
Public Sub New()
Wrapper = New LOTROExtreme.LOTREWrapper
End Sub
'------------------------------------------------------------------------------------------------------
'Public Exports
'------------------------------------------------------------------------------------------------------
Public Sub Key_Down(ByVal key As Keys)
Wrapper.Input.keyDown(key)
End Sub
Public Sub Key_Up(ByVal key As Keys)
Wrapper.Input.keyUp(key)
End Sub
Public Sub Key_Press(ByVal key As Keys)
Wrapper.Input.PressKey(key)
End Sub
Public Sub FocusGameWindow()
Wrapper.Input.FocusGameWindow()
End Sub
Public Sub SendCommand(ByVal action As String)
Wrapper.Input.SendCommand(action)
End Sub
Public Sub SendText(ByVal text As String)
Wrapper.Input.SendText(text)
End Sub
Public Sub SetKeyDelay(ByVal ms As Integer)
Wrapper.Input.SetKeyDelay(ms)
End Sub
End Class