TyeJae

I'm trying to have my program execute a keypress when I push this certain button, but for the life of me I cannot find the keypress code for the spacebar, I've tried {Spacebar}, {SPACE}, {Space}, {SPACEBAR} and { }, none of them worked for me. Could anyone help me out with this Here is my code thus far...

Code Snippet

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

SetCursorPos(740, 690)

mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)

mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)

System.Threading.Thread.Sleep(2000)

SendKeys.SendWait("{SPACE}")

End Sub




Re: Visual Basic Express Edition SendKeys Help...

nobugz

SendKeys.SendWait(" ")






Re: Visual Basic Express Edition SendKeys Help...

TyeJae

I new it was going to be something easy...lol

Thank you nobugz!