When I put him to turn left, yes everything correct.
Code:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
SendMessage(TibiaProcess.MainWindowHandle, WM_KEYDOWN, Keys.ControlKey, 0&)
SendMessage(TibiaProcess.MainWindowHandle, WM_KEYDOWN, Keys.Left, 0&)
SendMessage(TibiaProcess.MainWindowHandle, WM_KEYUP, Keys.Left, 0&)
SendMessage(TibiaProcess.MainWindowHandle, WM_KEYUP, Keys.ControlKey, 0&)
End Sub
And when i put him to mount (ctrl+r), he doesn't work?
Code:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
SendMessage(TibiaProcess.MainWindowHandle, WM_KEYDOWN, Keys.ControlKey, 0&)
SendMessage(TibiaProcess.MainWindowHandle, WM_KEYDOWN, Keys.R, 0&)
SendMessage(TibiaProcess.MainWindowHandle, WM_KEYUP, Keys.R, 0&)
SendMessage(TibiaProcess.MainWindowHandle, WM_KEYUP, Keys.ControlKey, 0&)
End Sub
Thx all.