dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: Keyboard Input Without return (Not a keylogger ;p)

  1. #1
    Join Date
    Dec 2007
    Posts
    14

    Keyboard Input Without return (Not a keylogger ;p)

    Me and my friend discovered these things called phidgets, which is hardware which is often used to build robots. It can be programmed in many languages. There were no examples for c++, and have been told it would be possible to move the code from the c example. However, it doesnt seem to be that simple (used the include, pretty sure I installed the .lib file correctly) and I got link errors.

    Anyway, I know the examples for VC++ work. So I decided the best option would be to do this is vc++. Im not a fantastic c++ coder at all, so starting vc++ Im gonna be awful. First project for the robot will be to control it with the keyboard. For this, I need input from the keyboard without the need for return to be pressed (unlike cin<< in c++). I know of GetASyncKeyStatus for c++, and would like to know of something similar for VC++, and if possible without hooks.

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Keyboard Input Without return (Not a keylogger ;p)

    USB devices? VB6 would be easiest, or even one of the .Net languages.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Dec 2007
    Posts
    14

    Re: Keyboard Input Without return (Not a keylogger ;p)

    It comes with libraries and other stuff with an installer, so I can use commands specific to the devices.

  4. #4
    Join Date
    Dec 2007
    Posts
    14

    Re: Keyboard Input Without return (Not a keylogger ;p)

    http://www.phidgets.com/ If anyone is interested

  5. #5
    Join Date
    Feb 2002
    Posts
    4,640

    Re: Keyboard Input Without return (Not a keylogger ;p)

    You didn't specify if you were using a framework (like MFC), or just the plain Windows API. Have a look at the WM_KEYDOWN message.

    Viggy

  6. #6
    Join Date
    Dec 2007
    Posts
    14

    Re: Keyboard Input Without return (Not a keylogger ;p)

    Im using Visual Studio 2005, otherwise not sure. And I found DirectInput.

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)