Thread: How to get C program to respond to another softwares commands

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    20

    How to get C program to respond to another softwares commands

    Hey there,
    Ive got a C program here that works via user inputs on the keyboard and logs time of a machine.

    start count = 1
    error=2
    fixed error=3
    stop and log to file = 4
    quit=5

    when you look at the log file of time.
    it has:
    date and time of start
    date and time of stop
    elapsed time(in seconds)
    error time(in seconds)

    I would like for the program to be automatic and to start when the machine software starts.

    the big thing I would like is for the program to log time when the user hits "START" on the other program .
    so instead of having to hit 1 in the program itll automatically start when they hit "start" in this other program.
    when an error pops up, for it to start counting error time
    when they hit ok to correct the error for it to stop logging error time.

    when the machine run is done for it to stop and log everything.


    I have no idea how I would go about doing this.

    Any help is appreciated.

    ps: the machine software is os2 based
    though the pc has both windows and os2 on it...and you are able to switch back and forth between the 2 anytime.
    and Im not sure if I can get access to the source code of this software I am trying to get it to respond to
    Last edited by Euphorica; 06-26-2008 at 10:27 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Calling System Commands from within your program
    By xiver0m in forum C Programming
    Replies: 13
    Last Post: 04-18-2007, 12:28 PM
  2. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 11:17 PM
  3. Can someome help me with a program please?
    By WinterInChicago in forum C++ Programming
    Replies: 3
    Last Post: 09-21-2006, 10:58 PM
  4. Need help with my program...
    By Noah in forum C Programming
    Replies: 2
    Last Post: 03-11-2006, 07:49 PM
  5. Replies: 2
    Last Post: 05-10-2002, 04:16 PM