473,385 Members | 1,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

background process

Hello Friends,
is there any way to make our program as background process so that it works forever..untill computer shutdown?

please tell me if you the technique..i want to make the program that works for forever..no matter it is active or inactive.
Apr 30 '07 #1
15 6040
ansumansahu
149 100+
Hello Friends,
is there any way to make our program as background process so that it works forever..untill computer shutdown?

please tell me if you the technique..i want to make the program that works for forever..no matter it is active or inactive.
If you are using VB.net you can run it as a windows service and it will continue to run in the background.

-ansuman sahu
Apr 30 '07 #2
If you are using VB.net you can run it as a windows service and it will continue to run in the background.

-ansuman sahu
thanks mr. ansuman sahu,
but i am nt using VB.NET , is there any way that i can make my Exe file as background process..
May 1 '07 #3
Killer42
8,435 Expert 8TB
thanks mr. ansuman sahu,
but i am nt using VB.NET , is there any way that i can make my Exe file as background process..
That probably depends on what you mean by a "background process". If it's running, and doesn't show a form, does that qualify? In which case, just don't show a form.

Can we assume that you're using VB6?
May 1 '07 #4
That probably depends on what you mean by a "background process". If it's running, and doesn't show a form, does that qualify? In which case, just don't show a form.

Can we assume that you're using VB6?
i want my program(exe) that stats and run forever, it shud nt depend upone whether it is active or inactive, like if i want to monitor my keyboard, all time which key is pressed , no matter which othre program is running ..i think u are understanding my problem--
May 2 '07 #5
Change the form's Visible property to False.
You will NOT see the form.
May 3 '07 #6
Killer42
8,435 Expert 8TB
i want my program(exe) that stats and run forever, it shud nt depend upone whether it is active or inactive, like if i want to monitor my keyboard, all time which key is pressed , no matter which othre program is running ..i think u are understanding my problem--
Unless you specifically code it that way, a VB program will not stop just because it's no longer the active window.

If you're planning to write a keylogger, then please don't ask for any more help here. Most of us spend time and/or money on software to keep those damned things out of our systems.
May 3 '07 #7
Change the form's Visible property to False.
You will NOT see the form.
if i will off the visivilty, that doest means that it will work forever, when it became inactive will it be in running mode
?
May 7 '07 #8
Killer42
8,435 Expert 8TB
if i will off the visivilty, that doest means that it will work forever, when it became inactive will it be in running mode
?
If a VB program is running, it will keep on running. It doesn't care whether it is visible or not.

If you wanted it to behave differently when it is not "active" (I'm assuming that you mean when it loses the focus) you would have to explicitly tell it to.
May 7 '07 #9
If a VB program is running, it will keep on running. It doesn't care whether it is visible or not.

If you wanted it to behave differently when it is not "active" (I'm assuming that you mean when it loses the focus) you would have to explicitly tell it to.

please make it clear is there any way that inactive program work as it is active, like i type somthing and program is not active or minimised then my keyboard will work for other program...
May 17 '07 #10
Killer42
8,435 Expert 8TB
I really don't understand what you're asking.

For starters, can you explain what you mean by a program being "inactive"? Do you just mean that it doesn't have the focus?

It's starting to sound as though you are trying to build a "keylogger". That is, a program which can sit in the background and read what's happening on the keyboard (and/or mouse) while the user interacts with other programs. Does this sound about right?
May 18 '07 #11
Hello All,

I have some similar problem. I want to create a VB6.0 application which is called from command line, application will call database and write it in text file on machine.

I created Standard exe and my method to check database and write to file work fine if I call that method from form_load method, but this loaded a form on top and I do not want the form to come. I want to close the application one it's done writing on file, it should not be open for life long.

How can I achieve this scenario with out loading form?

Any response is really appreciated

Thanks in anticipation.

Regards,
Vivek Jain
May 22 '07 #12
Killer42
8,435 Expert 8TB
I have some similar problem. I want to create a VB6.0 application which is called from command line, application will call database and write it in text file on machine.

I created Standard exe and my method to check database and write to file work fine if I call that method from form_load method, but this loaded a form on top and I do not want the form to come. I want to close the application one it's done writing on file, it should not be open for life long.

How can I achieve this scenario with out loading form?
What you do is create a project with no forms in it. Under Project Properties, in the General tab, set the Startup Object to Sub Main.

Then, in a code module, create a Public Sub called Main. That's where your code goes. Once Main exits, your application should close automatically.
May 23 '07 #13
What you do is create a project with no forms in it. Under Project Properties, in the General tab, set the Startup Object to Sub Main.

Then, in a code module, create a Public Sub called Main. That's where your code goes. Once Main exits, your application should close automatically.
Thanks a lot Killer42,

I tried some thing similar last evening after I sent you the request and was able to achieve desired behavior. Thanks a ton for responding to my request.

Vivek Jain
May 23 '07 #14
I really don't understand what you're asking.

For starters, can you explain what you mean by a program being "inactive"? Do you just mean that it doesn't have the focus?

It's starting to sound as though you are trying to build a "keylogger". That is, a program which can sit in the background and read what's happening on the keyboard (and/or mouse) while the user interacts with other programs. Does this sound about right?

after a long time, i read ur mail, ya you are right i want what is happening wid keyboard and mouse while user interacts wid other program. for this should i use assembly language..
Jun 1 '07 #15
Killer42
8,435 Expert 8TB
after a long time, i read ur mail, ya you are right i want what is happening wid keyboard and mouse while user interacts wid other program. for this should i use assembly language..
I don't know that you'll find much help for this here. Most of us go to great lengths to keep such things out of our system. They are typically used for evil purposes, such as skimming credit card details.
Jul 11 '07 #16

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Joshua Beall | last post by:
Hi All, I am working on a mailing list program for a client, and I am wondering what tbe hest way to deal with script timeouts is. I realize that I could use set_time_limit() to increase the...
3
by: Jenkins | last post by:
I want to start a perl pgm in the background on my hosts web server as a stand-alone process. I only have ftp access. What I've done, so far, is: 1) created the actual background perl script,...
2
by: Paul Hatcher | last post by:
I have an ASP.NET application that uses a background threads to perform a long-running process. What I'm not sure is how to track and communicate with the thread. The site is divided up into...
1
by: hsmcdonald | last post by:
Hello all, I have a mail function that sends parsed information to an employee distribution list. I was trying to setup a process where the admin can initiate a letter to this list, and...
2
by: Hilmar Bunjes | last post by:
Hi, I'm working on a web application in ASP.NET 3.5 and need some help with processing stuff in the background. The user who visits a web page can make reservations. Each reservation will...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.