Solved

Working in background

Posted on 1998-07-23
4
165 Views
Last Modified: 2010-04-04
How can I make program that work in background? I want to make program that save the time when Windows is starting, write it on the screen, and after that, in evry moment, write curent time and distance between that two times?
How to do this?
0
Comment
Question by:mmilan
  • 2
4 Comments
 
LVL 3

Expert Comment

by:Matvey
ID: 1358580
For your program to work in background you can make just a normal program that gets the time every second, makes the calculations you want etc. The only thing your program will need is to be unvisible in the taskbar and start when windows starts.

You can use this component to make it start when windows starts:
http://bes.trendline.co.il/torry/vcl/system/amarun.zip

And you can use these components to hide the button on taskbar:
http://bes.trendline.co.il/torry/vcl/system/appvisib.zip
http://bes.trendline.co.il/torry/vcl/system/thidetask.zip
http://bes.trendline.co.il/torry/vcl/system/notask.zip
0
 
LVL 4

Expert Comment

by:BoRiS
ID: 1358581
mmilan

when you say write it on the screen you mean the desktop or a form you've created...

Later
BoRiS
0
 
LVL 3

Expert Comment

by:Matvey
ID: 1358582
Ahh, forgot to mention. When your program starts, get the time by calling Then := Now. Then every second calculate Differ := Now-Then, and display it using TimeTostr(Differ)...

From Boris'es comment - maybe it's a good idea to use Screen.Canvas.TextOut(TimeToStr(Differ)) (??not sure it'll work, but a good idea)
0
 

Accepted Solution

by:
ShadowHawk071998 earned 10 total points
ID: 1358583
You also need to use the Timer of course.This is the component that allows you to 'go to
sleep' and only wake at certain 'intervals' (Like 1 second. EVery second is 1000 in the interval property). It's dead simple to use, it has one event (WHen the timer finished counting back).
good luck...
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question