this is my first post. weee!!
i am trying to make hotkeys for an event of a program i am making.
i have this so far but it wont work.
i understand why it wont work, but i cant figure out what to write to make it work.VB Code:
Public Class Form1 Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick If System.Windows.Forms.Keys.F7 Then My.Computer.Keyboard.SendKeys(TextBox1.Text) My.Computer.Keyboard.SendKeys("{enter)") End If End Sub End Class
i think it is the "If System.Windows.Forms.Keys.F7 Then" part.
could someone help me?




Reply With Quote