By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,760 Members | 1,585 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,760 IT Pros & Developers. It's quick & easy.

logging of start time and stop timings of the applications

P: 32
Actually iam preparing a windows application. My winform duty is storing finding the start time and stop timings of the applications. when ever i opened the word my winform should catch this one and closing time also for all the applications. like word,notepad,paint etc....
can any body help me
pls
Mar 30 '07 #1
Share this Question
Share on Google+
5 Replies


Motoma
Expert 2.5K+
P: 3,235
Actually iam preparing a windows application. My winform duty is storing finding the start time and stop timings of the applications. when ever i opened the word my winform should catch this one and closing time also for all the applications. like word,notepad,paint etc....
can any body help me
pls
The only way I know of that one could do this easily would be to poll the open windows using the enumWindows and enumChildWindows functions from user32.dll.
There are probably better and more complicated ways involving trapping system calls, but that is beyond my realm of expertise.
Mar 30 '07 #2

RedSon
Expert 5K+
P: 5,000
You must use a good thread title when creating a post. Please see the FAQ.

http://www.thescripts.com/forum/faq....d_thread_title
Mar 30 '07 #3

P: 32
Hi Good morning,

I am creating one windows application. This application duty is finding the other applications opening time and closing time. When ever the application is opened by the user then my application will catch that opened time and when ever application (not my application other application) closed by the user then my application will catch the closed time... How can i do this vb.net
Apr 2 '07 #4

kenobewan
Expert 2.5K+
P: 4,871
Please do not repost it is against site rules. Thanks.
Apr 2 '07 #5

P: 10
One thing you can do is to have your application query the currently running processes every x number of seconds, and maintain a book for currently running processes, then if a new one one appears (or disappears) you log the result.

Here is the link to your answer with the full source code:

Process Logger

Hope this helps,

Yousef
Apr 2 '07 #6

Post your reply

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