Results 1 to 14 of 14

Thread: Hi I'm new and need help...

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    9

    Cool Hi I'm new and need help...

    Hi everyone
    I need help, I tryed searching this forum and the net but with no practical results
    So i registered here so I can get some help...
    I am interested in learning about hooking and how to send input(I mean keystroks) using directx, I have no idea wats ment just know the name and thats its real, so I would like to ask for some guide for this subjects, or any sites explaining high vb in general.
    I program in vb6, know .net a bit and would like to learn .net as well

    Any help would be appriciated and thx ahead....

  2. #2
    Fanatic Member
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    760

    Re: Hi I'm new and need help...

    I don't know what you mean by 'using directX'??

    You can send keystrokes to the computer using the keybd_event API, but that has nothing to do with DirectX
    If I helped you out, please consider adding to my reputation!

    -- "The faulty interface lies between the chair and the keyboard" --

    VB6 Programs By Me:
    ** Dictionary, Thesaurus & Rhyme-Generator In One ** WMP Recent Files List Editor ** Pretty Impressive Clock ** Extract Firefox History **

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Hi I'm new and need help...

    Welcome to the forums.

    All of our DirectX folks hang out in the Games and Graphics Programming section, so I believe you will get both the best, and the most, assistance by having your question here.

    Moved.

  4. #4
    Fanatic Member damasterjo's Avatar
    Join Date
    Nov 2005
    Location
    In front of my Comp DirectX7 EXpert
    Posts
    827

    Re: Hi I'm new and need help...

    http://directx4vb.vbgamer.com/DirectX4VB/TUT_DX8_DI.asp

    that site has alot of good directx tutorials...
    Software languages known:
    Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
    Software API's known:
    Directx 7 and 8
    Internet languages, in the process of learning:
    HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX

  5. #5
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Hi I'm new and need help...

    DirectX only reads input. It doesn't write it. So sending keys using DX is not possible. Believe me, I tried and found out the hard way myself.

  6. #6

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    9

    Re: Hi I'm new and need help...

    ty for the replies.
    gonna check the site...
    brb with some more questions..........

  7. #7

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    9

    Got some questions

    Quote Originally Posted by damasterjo
    http://directx4vb.vbgamer.com/DirectX4VB/TUT_DX8_DI.asp

    that site has alot of good directx tutorials...
    in this site it was written:
    "The "GUID_SysKeyboard" part in the CreateDevice( ) function is important (as the comment says!). it tells the DirectInput8 object to create a keyboard device - there are a lot of GUID's - Globally Unique IDentifier's... but we only need this GUID - the other standard one is for a mouse device; the rest have to be enumerated - a topic for later on... Either way, you'll be safe to use the "GUID_SysKeyboard" token."

    This part is not so clear to me, if I understood correctly then it says u create a new device (which is a keyboard, in this case), does this mean it simulates a keyboard? like there is another keyboard connected to the pc???
    the example given in this site reads the key imputs and shows wether key is up or down is there anyway to set wether the key is up or down (aka sending key input)??
    Is there any way in vb to simulate a keyboard and send key strokes with it??
    Is there a way to send key inputs on the driver level?? <===is this connected to hooking in any way if yes, can u give some guides, sites explaining it in depth??

    again any help would be appriciated and 10x ahead...

  8. #8

  9. #9

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    9

    Unhappy Re: Hi I'm new and need help...

    Quote Originally Posted by RhinoBull
    @MadaFaka:

    I wish names like yours would be censored (or even better - restricted) by forum software. Sory.
    Is anyone offended by my name???
    Well im trully sorry if yes.
    It was chosen strictly as a joke!!
    I have already sent a pm to a mod to change my user name.
    I chose this user name cause I use it in many forums and didnt get any complains before.
    Im sorry and hope it would be changed soon.

  10. #10

  11. #11

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    9

    Re: Hi I'm new and need help...

    ok, now when the name issues are behind us can some one help me by answering my questions??

  12. #12
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Got some questions

    Quote Originally Posted by slim-shady
    in this site it was written:
    "The "GUID_SysKeyboard" part in the CreateDevice( ) function is important (as the comment says!). it tells the DirectInput8 object to create a keyboard device - there are a lot of GUID's - Globally Unique IDentifier's... but we only need this GUID - the other standard one is for a mouse device; the rest have to be enumerated - a topic for later on... Either way, you'll be safe to use the "GUID_SysKeyboard" token."

    This part is not so clear to me, if I understood correctly then it says u create a new device (which is a keyboard, in this case), does this mean it simulates a keyboard? like there is another keyboard connected to the pc???
    the example given in this site reads the key imputs and shows wether key is up or down is there anyway to set wether the key is up or down (aka sending key input)??
    Is there any way in vb to simulate a keyboard and send key strokes with it??
    Is there a way to send key inputs on the driver level?? <===is this connected to hooking in any way if yes, can u give some guides, sites explaining it in depth??

    again any help would be appriciated and 10x ahead...
    I said it before, and I'll say it again.

    Quote Originally Posted by Jacob Roman Post #5
    DirectX only reads input. It doesn't write it. So sending keys using DX is not possible. Believe me, I tried and found out the hard way myself.
    Wanna ask if its possible to send input using DX again?

  13. #13

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    9

    Re: Hi I'm new and need help...

    Is there any way in vb to simulate a keyboard and send key strokes with it??
    Is there a way to send key inputs on the driver level?? <===is this connected to hooking in any way if yes, can u give some guides, sites explaining it in depth??

    those questions are not regarding directx...
    I wrote "any way"...

  14. #14
    Hyperactive Member BramVandenbon's Avatar
    Join Date
    Jan 2002
    Location
    Belgium
    Posts
    502

    Re: Hi I'm new and need help...

    This question has been asked very frequently.

    If I were you, I would repost this topic in the .NET or VB6 forum. Because your question is not DirectX related at all, it has nothing to do with this forum.

    And while you're at it, maybe choose a better title like: "Sending and receiving keystrokes".

    Of course you could also just use the search functions of this forum. You will find plenty of simular questions with simular answers:
    http://www.vbforums.com/showthread.php?t=410704
    http://www.vbforums.com/showthread.php?t=407373
    http://www.vbforums.com/showthread.php?t=287413
    and several others ...
    ____________________________________________

    Please rate my messages. Thank you!
    ____________________________________________
    Bram Vandenbon
    http://www.bramvandenbon.com

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