Thread: Help

Results 1 to 15 of 15
  1. #1
    GaMeZoNEs's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    154
    Reputation
    10
    Thanks
    10
    My Mood
    Blah

    Help

    I can create a bot that can send basic keys such as alt,ctl,a,bc,etc. But I just can't send up/left/right/down arrow keys with my bot in game. Can someone please help me by giving me a full code for sending any arrow key? Thanks!

  2. #2
    PashaAmd's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    1,014
    Reputation
    58
    Thanks
    224
    if( GetAsyncKeyState(VK_UP) ) { }
    if( GetAsyncKeyState(VK_DOWN) ) { }
    if( GetAsyncKeyState(VK_RIGHT) ) { }
    if( GetAsyncKeyState(VK_LEFT) ) { }

  3. #3
    GaMeZoNEs's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    154
    Reputation
    10
    Thanks
    10
    My Mood
    Blah
    No sorry that's not what I mention. I mention I need a code so that it can automatically send arrow keys

  4. #4
    PashaAmd's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    1,014
    Reputation
    58
    Thanks
    224
    for ( ;; ) {

    if( GetAsyncKeyState(VK_UP) ) { }
    if( GetAsyncKeyState(VK_DOWN) ) { }
    if( GetAsyncKeyState(VK_RIGHT) ) { }
    if( GetAsyncKeyState(VK_LEFT) ) { }


    }

  5. #5
    GaMeZoNEs's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    154
    Reputation
    10
    Thanks
    10
    My Mood
    Blah
    No dude that's for hotkey I am trying to create a bot that will send arrow keys and I can not use post message

  6. #6
    PashaAmd's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    1,014
    Reputation
    58
    Thanks
    224
    c++ or vb?

  7. #7
    GaMeZoNEs's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    154
    Reputation
    10
    Thanks
    10
    My Mood
    Blah
    Um in c++

  8. #8
    PashaAmd's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    1,014
    Reputation
    58
    Thanks
    224
    o.o ohhh
    hmm google?
    i think it ssomething like SendKeys("")

  9. #9
    GaMeZoNEs's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    154
    Reputation
    10
    Thanks
    10
    My Mood
    Blah
    Sendkeys won't work I have to use sendinput

  10. #10
    PashaAmd's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    1,014
    Reputation
    58
    Thanks
    224
    then use it....

  11. #11
    GaMeZoNEs's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    154
    Reputation
    10
    Thanks
    10
    My Mood
    Blah
    That's the issue I don't know how

  12. #12
    PashaAmd's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    1,014
    Reputation
    58
    Thanks
    224
    thats why there's google..

  13. #13
    GaMeZoNEs's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    154
    Reputation
    10
    Thanks
    10
    My Mood
    Blah
    Well google isn't helping ATM so that's why I'm asking

  14. #14
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,035
    Reputation
    340
    Thanks
    2,784
    My Mood
    Sad
    keyb_event(...)

  15. #15
    mo3ad001's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    842
    Reputation
    53
    Thanks
    795
    My Mood
    Busy
    Try This
    look in to understand it well WinUser.h
    Code:
    WINUSERAPI
    VOID
    WINAPI
    keybd_event(
        __in BYTE bVk,
        __in BYTE bScan,
        __in DWORD dwFlags,
        __in ULONG_PTR dwExtraInfo);
    how to use :
    Code:
     keybd_event(TheKeyHere, 0, 0, 0);

    H A X O
    Email : Noobmem@hotmail.com