Thread: Mouse Input

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    545

    Mouse Input

    I know that it is possible to get mouse input in Win32 API but can you get mouse input in a console application? If you can then what code can you use to do this?

  2. #2
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    What can you possibly point and click at in an console app?
    Sent from my iPadŽ

  3. #3
    Registered User
    Join Date
    Nov 2005
    Posts
    545
    i am sorry, so i take it that you have to use win32 to get mouse input

  4. #4
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Yes, most likely. I'm sure you could write a console app that could recieve the signals of the mouse clicks, but you couldn't assign them to anything since they already have functions in the console window.
    Sent from my iPadŽ

  5. #5
    Registered User
    Join Date
    Nov 2005
    Posts
    545
    i wanted to have text in a program that you could click on rather thanhaving to type

  6. #6
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Nope, that's not possible in a console app.

    If you want to make a clickable program with graphics and don't want to wait until you've learned C++ really well, might I suggest using languages like PHP and Javascript.
    Sent from my iPadŽ

  7. #7
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    Exclamation MSDN says you can do it.

    I've never tried it, but according to the MSDN Console Reference, it can be done!

    Of course, you'll have to keep track of what's-where on the screen, so that you'll know what your clicking-on... but this is generally true in Windows applications too.

  8. #8
    Registered User
    Join Date
    Nov 2005
    Posts
    545
    I understand that code but how would you implement it in a programme.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Input class project (again)
    By Elysia in forum C++ Programming
    Replies: 41
    Last Post: 02-13-2009, 10:52 AM
  2. can someone help me with these errors please code included
    By geekrockergal in forum C Programming
    Replies: 7
    Last Post: 02-10-2009, 02:20 PM
  3. Trouble with a lab
    By michael- in forum C Programming
    Replies: 18
    Last Post: 12-06-2005, 11:28 PM
  4. Making a mouse hover button, API style
    By hanhao in forum C++ Programming
    Replies: 1
    Last Post: 05-27-2004, 06:17 AM
  5. Win32 Console App- Mouse input
    By Trauts in forum Windows Programming
    Replies: 2
    Last Post: 04-29-2003, 11:32 AM