Results 1 to 7 of 7
  1. #1
    Qizzle15401's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    112
    Reputation
    39
    Thanks
    179
    My Mood
    Devilish

    [Help]Keyboard,SendKeys,Hook[Solved]

    ok soo say i want to send keys to an app ay? but i want to send the keys to move a player position like one step forward or one step back with a W or a S is there a send key alternative that can get past video games that only move a player position if it really comes from the keyboard? any way to hook they keyboard if so could u explain it too me thanks guys

  2. #2
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    this has more to do with sending packets and stuffz...way too advanced for me



  3. #3
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Meh, Give me a few hours and it will be added to the VB sdk in the sticky, I am writing a low_level_keyboard Hook with Sendkeys API alternative.

    This will allow you to use a Single line of code to hook into a application.

    But for now, just research SendKeys API , there is some documentation.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  4. The Following 2 Users Say Thank You to NextGen1 For This Useful Post:

    Blubb1337 (04-28-2010),Qizzle15401 (04-28-2010)

  5. #4
    Qizzle15401's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    112
    Reputation
    39
    Thanks
    179
    My Mood
    Devilish
    Cool stuff thanks bud

  6. #5
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,843
    Reputation
    425
    Thanks
    8,616
    Quote Originally Posted by Qizzle15401 View Post
    ok soo say i want to send keys to an app ay? but i want to send the keys to move a player position like one step forward or one step back with a W or a S is there a send key alternative that can get past video games that only move a player position if it really comes from the keyboard? any way to hook they keyboard if so could u explain it too me thanks guys
    Keybd_event?
    Code:
        Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, _
        ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
        Const KEYEVENTf_KEYUP As Long = &H2
    Code:
            keybd_event(Keys.W, 0, 0, 0)
            keybd_event(Keys.W, 0, KEYEVENTf_KEYUP, 0)

  7. The Following User Says Thank You to NOOB For This Useful Post:

    Qizzle15401 (05-08-2010)

  8. #6
    Qizzle15401's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    112
    Reputation
    39
    Thanks
    179
    My Mood
    Devilish
    keyborad event does work thanks bud

  9. #7
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Marked solved


     


     


     



    The Most complete application MPGH will ever offer - 68%




Similar Threads

  1. [Help]Keyboard key[Solved]
    By bo76 in forum Visual Basic Programming
    Replies: 15
    Last Post: 01-11-2011, 03:02 PM
  2. [Help]Form Background Color[Solved]
    By Shark23 in forum Visual Basic Programming
    Replies: 5
    Last Post: 03-08-2010, 10:34 PM
  3. [Help]Proxy With WebBrowser[Solved]
    By ppl2pass in forum Visual Basic Programming
    Replies: 1
    Last Post: 03-07-2010, 11:03 PM
  4. [Help]Basic Text Box[Solved]
    By FlashDrive in forum Visual Basic Programming
    Replies: 3
    Last Post: 03-06-2010, 10:54 PM
  5. Help with public hook
    By ProfWoolyNipples in forum WarRock Discussions
    Replies: 3
    Last Post: 09-29-2009, 01:00 PM