how to continuously send mouse coordinates to serial port using c??

This is a discussion on how to continuously send mouse coordinates to serial port using c?? within the C Programming forums, part of the General Programming Boards category; hi all... i'm new here n i need help. can anyone give me program to continuously send mouse coordinates to ...

  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    1

    how to continuously send mouse coordinates to serial port using c??

    hi all... i'm new here n i need help. can anyone give me program to continuously send mouse coordinates to serial port using c?? i need program for both types of mice: optical mouse and standard ball mouse. if program is readily available anywhere pl provide the link. thanks.

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    No one is going to do your work for you, your 'random' username also suggests this is homework -- and you don't want anyone finding out.

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    When you say "continously", do you mean "whenever the mouse coordinates change", or even when the mouse is sitting still in one place?

    In either case, there should be plenty of examples of code that "tracks where the mouse is", for either Windows or Linux/Unix/X-Windows.

    The next step is to send this to the serial port, either periodically or using a "when changed" approach. If you us the "when changed" approach, you could probably make use of some sort of pipe to stuff each set of coordinates into the pipe and read them out in a second thread - that way, you don't have to worry about sequencing.

    Does this help you? If not, please explain which part of the problem you are struggling with, and also what OS this is intended for.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Send image (.jpg) file over serial port
    By aSpareName in forum Networking/Device Communication
    Replies: 2
    Last Post: 06-30-2009, 10:35 AM
  2. serial port to poll on request
    By infineonintern in forum C++ Programming
    Replies: 2
    Last Post: 06-11-2009, 07:52 AM
  3. Send and Recive Information through the serial Port RS232
    By amigoloko in forum C# Programming
    Replies: 4
    Last Post: 04-14-2006, 01:34 PM
  4. Send and receive through serial Port
    By overspray in forum C++ Programming
    Replies: 1
    Last Post: 07-21-2004, 05:15 PM
  5. DOS, Serial, and Touch Screen
    By jon_nc17 in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 01-08-2003, 04:59 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21