A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

how do I check how long Outlook window has been active for?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 3rd 07, 03:14 PM posted to microsoft.public.outlook.program_vba
Morris
external usenet poster
 
Posts: 2
Default how do I check how long Outlook window has been active for?

I'd like to have a counter, a timer, that runs (counts the time) as
long as outlook is the current active window (ie the window on top,
and the user is reading/writing emails, sorting folders, anything) and
stops when the person switches to another window.. I'd be grateful for
pointing me to the right direction?

Thanks,
Morris

Ads
  #2  
Old May 4th 07, 06:11 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default how do I check how long Outlook window has been active for?



I'd assume that's possible with subclassing from within Outlook. Probably
WM_ACTIVATEAPP is the message you should look for. If you want to get that
message from a different process then a hook (not possible with VB but C++
e.g.) would be necessary.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - Categorize Outlook data:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am 3 May 2007 07:14:19 -0700 schrieb Morris:

I'd like to have a counter, a timer, that runs (counts the time) as
long as outlook is the current active window (ie the window on top,
and the user is reading/writing emails, sorting folders, anything) and
stops when the person switches to another window.. I'd be grateful for
pointing me to the right direction?

Thanks,
Morris

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Office 2003 always looking for MSWORD (looking a long, long time ritter197 Outlook - General Queries 7 October 29th 06 06:01 PM
Outlook express can't spell check. It says to check later. Harold Outlook - General Queries 2 September 8th 06 10:56 PM
Is Outlook For Me? (Long) sdavies6 Outlook - General Queries 5 April 23rd 06 02:59 AM
Active Window bar in OE6 Max Outlook Express 2 March 21st 06 02:53 AM
Distribution list window dosn't show the same as in contact window Rose Outlook - Using Contacts 5 February 26th 06 10:17 PM


All times are GMT +1. The time now is 12:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.