Thread: Run in background

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    41

    Run in background

    Is there a way to make a DOS program run in the background that just gets the keys that have been pushed. Like a key-logger. Can you do this in DOS. How would I do this. If it's to complicated to explain just tell me and i'll look around. But can it be done? I want the program not to be shown on the screen at all and not noticed by anything even when you hit ctr-alt-del. Completely invisable!
    Shouldent NULL be, 78, 85, 76, 76, or just 0 or, 4E, 55, 4C, 4C

  2. #2
    Registered User Zeeshan's Avatar
    Join Date
    Oct 2001
    Location
    London, United Kingdom
    Posts
    226
    Yes, of course. For e.g. i have seen a TSR (terminate and stay resident) program, which brings up a Calender on pressing <Ctrl+C> and a notebook on pressing <Ctrl+N> in DOS...

    The mentioned program must be monitoring all the key-presses..and it performs these actions on the <Ctrl+C> and <Ctrl+N>

    But, programming such a thing would require low-level programming...which should be complex and difficult..

  3. #3
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    Maybe this FAQ helps you a little further.

    http://www.faqs.org/faqs/msdos-progr...ection-21.html

  4. #4
    Im back! shaik786's Avatar
    Join Date
    Jun 2002
    Location
    Bangalore, India
    Posts
    345
    It's more than 2 yrs since I programmed in DOS, but I remember of a function keep() (If I'm not wrong), which would place the program in memory, though the control would be passed on to the command shell. You can do a lot of naughty and important stuff with this, but ofcourse, everything comes with a price, it's not as simple to program a TSR.

  5. #5
    Registered User
    Join Date
    May 2002
    Posts
    41
    Thank you for all your help.
    Shouldent NULL be, 78, 85, 76, 76, or just 0 or, 4E, 55, 4C, 4C

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MSVC: run w/o debugger vs run w/ debuger
    By skorman00 in forum C++ Programming
    Replies: 2
    Last Post: 01-24-2006, 09:49 PM
  2. Letting a program run as a task ( background )
    By GanglyLamb in forum C# Programming
    Replies: 5
    Last Post: 12-01-2005, 08:52 AM
  3. Windows background color
    By Exile in forum Windows Programming
    Replies: 2
    Last Post: 01-23-2005, 07:55 AM
  4. Replies: 2
    Last Post: 10-29-2002, 04:56 PM
  5. Running program on background?
    By Couhilin in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 11-03-2001, 07:50 AM