dcsimg
Results 1 to 5 of 5

Thread: [HELP] Hotkeys

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2009
    Location
    Canada/Quebec
    Posts
    54

    [HELP] Hotkeys

    Hi, im trying to make a Keybinder for GTA SanAndreas Multyplayer Online(Sa-mp) and i need help with the Hotkeys... Why this doesn't work?

    HTML Code:
    Public Class Form1
        Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
            If e.KeyCode = Keys.F10 Then
                SendKeys.Send(TextBox1.Text)
            End If
        End Sub
    
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    
        End Sub
    End Class
    Even if i try it in a notepad nothing happen...

    Srry for my english
    Learning VB2008
    Developer DaneX

  2. #2
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,817

    Re: [HELP] Hotkeys

    Hi,

    In the properties of your form did you set Keypreview = true
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  3. #3
    Hyperactive Member BadgerBadger's Avatar
    Join Date
    Aug 2009
    Location
    Wales
    Posts
    382

    Re: [HELP] Hotkeys

    The Form1_KeyDown event is only fired when your form is active.

    Also, you may want to check through the rules of the forum. You may have missed some of them.
    "The only thing that interferes with my learning is my education."

  4. #4

    Thread Starter
    Member
    Join Date
    Jul 2009
    Location
    Canada/Quebec
    Posts
    54

    Re: [HELP] Hotkeys

    Thanks but it doesn't work in a notepad but it doesn't work in GTA SA MultyPlayer... why? but it work into a rich text box in my form.
    Learning VB2008
    Developer DaneX

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,174

    Re: [HELP] Hotkeys

    A game isn't the same thing as a textbox on your form

    MMOs will generally try to introduce measures to prevent people from doing such a thing since it counts as cheating (imagine if your opponent were able to go through 5 moves in the span of a few seconds while you're still on your first). Thread closed.

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width