Hi I'd like some help on how to make a program that keeps running on the background.
Even if it is minimized, I wanted it to still be running.
Any help or info about it, or anywhere I can find is great!
thx in advance
Hi I'd like some help on how to make a program that keeps running on the background.
Even if it is minimized, I wanted it to still be running.
Any help or info about it, or anywhere I can find is great!
thx in advance
Are you on a *nix type of system? Is the program running from (in) a shell?Originally Posted by khelmo
No I'm using Windows =(
So, is it running in a Windows Console (command line style) or do you want it running in the GUI (albeit hidden)?
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
win32 console
My OS is WindowsME and my compiler MS VS C++ 6.0
Last edited by khelmo; 08-10-2004 at 05:16 PM.
Don't linux daemons fork() a new process that is the background process, and then kill themselves, making the new process a zombie (running in the background and hard to kill)? If so, you could do something similar in windows I am guessing.
Help populate a c/c++ help irc channel
server: irc://irc.efnet.net
channel: #c
I'm not sure if you could do it in C, but windows services offer this kind of functionality. Also, a lot of programs will still technically be active, but when you click the close button or something similar, they hide all of their interface. I'm sorry to say however, I have no idea how you would go about this in C without a great deal of difficulty.
Sorry, I didn't quite understand what you said!Originally Posted by chrismiceli
(I speak portuguese)
/////////////////////////
Let me give an example of a program:
Lets say I wanted to read whenever a key is pressed and write it on a file BUT it must work even if the active window isn't the application itself; like I was typing in the notepad and my application running on the background is reading the keyboard and writing the chars on a file at the same time!
Last edited by khelmo; 08-10-2004 at 07:38 PM.
... in other words spyware?
in my own PC lol, but I don't really want to do it for that reason! If I did, I'd download something from the net, it's really easy to...
I want to learn cuz I've always thought about it and is quite interesting.
I'm only guessing but doesn't it have anything to do with threads?
Last edited by khelmo; 08-10-2004 at 07:45 PM.
Oh ok then.
No I don't think it would have anything to do with threads. At least not at the program level - definately at the system level, but you don't have to worry about that. I would recommend doing this project in C++ (if it's not too much of a problem for you) as C++ libraries will offer a much wider variety of options as far as windows programming
I might do that then, thx manOriginally Posted by sean_mackrory
If anyone knows more about this problem, feel free to post
I'll keep studing!
Develop Keyboard filter driver