Results 1 to 13 of 13

Thread: hotkeys (un-fixed)(re-fixed*self solved*)

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Location
    /root/
    Posts
    94

    Talking hotkeys (un-fixed)(re-fixed*self solved*)

    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.
    VB Code:
    1. Public Class Form1
    2.     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    3.         If System.Windows.Forms.Keys.F7 Then
    4.             My.Computer.Keyboard.SendKeys(TextBox1.Text)
    5.             My.Computer.Keyboard.SendKeys("{enter)")
    6.         End If
    7.  
    8.     End Sub
    9. End Class
    i understand why it wont work, but i cant figure out what to write to make it work.
    i think it is the "If System.Windows.Forms.Keys.F7 Then" part.
    could someone help me?
    Last edited by ader10; Jul 4th, 2005 at 03:15 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width