Activity timer with RS232 out

This is a discussion on Activity timer with RS232 out within the C Programming forums, part of the General Programming Boards category; Hello everyone i'm looking for help on writing C program that when started, it's counting time (like 10 seconds) and ...

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    3

    Unhappy Activity timer with RS232 out

    Hello everyone
    i'm looking for help on writing C program that when started, it's counting time (like 10 seconds) and when any key is pressed (shoul'd be any key - all keys), start to count again. when the timer reached the 10 seconds and no key is pressed, the program send out data via the serial port (rs232) or even a beep to the speaker.

    any help will be appreciate

    TNX

    Aviek

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    So exactly which part of that problem is it you want help with?

    --
    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.

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    3
    Thanks for answering so fast...
    i learned C many years ago, so i don't remember even where to begin...
    the real help i need is that someone will write the code for me. i belive that if i need to change something later i will manage by myself, but if not - you are here...
    Avi

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    You probably want www.rentacoder.com, then...

    --
    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.

  5. #5
    - - - - - - - - oogabooga's Avatar
    Join Date
    Jan 2008
    Posts
    2,808
    Quote Originally Posted by aviek View Post
    i need is that someone will write the code for me.
    Due to all of the homework-related requests on these kinds of sites, you will generally not get help here until you help yourself first.

    If it is not homework, what is it? What do you need it for? Maybe there's a freely available program to solve your problem. For instance, depending on your purpose, a keylogger might be what you need.

  6. #6
    Registered User
    Join Date
    Jan 2008
    Posts
    3
    Hey, I wish i coul'd help... i don't know much and what i did learned i forgot !
    it's not homework. i need it for triggering an alarm when the computer (user) stop typing after a certain time. i need it for a test i'm doing at my work. (not C programming related...)

    i just thought that for you guys is a five minutes work... i thought that's what forums all about, helping others.
    Thanks
    Aviek

  7. #7
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Quote Originally Posted by aviek View Post
    i thought that's what forums all about, helping others.
    Thanks
    Aviek
    It is. That's why we're not just posting a solution.

  8. #8
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    So, where is the user typing into? Is it "any" application, or a very particular application? What OS is this running on? Does it need to be tamper proof, or just "work most of the time"?

    The solution is different if the user has to type into a particular application.

    And by the way, what's going to prevent the user from putting a weight of some sort on the spacebar to make it seem like the user is typing?

    When it comes to "Helping others", the best help is usually to help others to understand, not to help them do it for them. Do you think my 3.5year old son prefers me dressing him or him doing it himself? Which is best for him later in life?

    If you want someone to professionally do this for you, pay for it.

    --
    Mats
    Last edited by matsp; 01-26-2008 at 04:52 PM.
    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.

  9. #9
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    I believe the pair of bowls is ' Give a man a fish, you feed him for a day, Teach a man to fish and you feed him for a lifetime'. or in cynical terms, 'Give a man a fish and you lose a sale, Teach a man to fish and you lose a customer'.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. SIGALRM and timer
    By nkhambal in forum C Programming
    Replies: 1
    Last Post: 06-30-2008, 12:23 AM
  2. tic tac toe crashes :(
    By stien in forum Game Programming
    Replies: 4
    Last Post: 05-13-2007, 06:25 PM
  3. Need help with a count down timer
    By GUIPenguin in forum C# Programming
    Replies: 0
    Last Post: 07-07-2006, 04:18 PM
  4. Timer again.
    By geek@02 in forum Windows Programming
    Replies: 1
    Last Post: 05-04-2005, 10:19 PM

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