Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. document timing

document timing

Scheduled Pinned Locked Moved C / C++ / MFC
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tony Teveris
    wrote on last edited by
    #1

    Does anyone know of a way to keep track of time spent on a "document" . I would like to keep track of the time a user spends creating and working on a "document". If s/he stops for some period of time (1 minute) I want the time to stop and pick up again when they start clicking with either the mouse or keyboard. Thanks in advance Tony Teveris Gerber Scientific Products Senior Software Engineer Phone: 860 648 8151 Fax: 860 648 8214 83 Gerber Road West South Windsor, CT 06074

    RaviBeeR J R 3 Replies Last reply
    0
    • T Tony Teveris

      Does anyone know of a way to keep track of time spent on a "document" . I would like to keep track of the time a user spends creating and working on a "document". If s/he stops for some period of time (1 minute) I want the time to stop and pick up again when they start clicking with either the mouse or keyboard. Thanks in advance Tony Teveris Gerber Scientific Products Senior Software Engineer Phone: 860 648 8151 Fax: 860 648 8214 83 Gerber Road West South Windsor, CT 06074

      RaviBeeR Offline
      RaviBeeR Offline
      RaviBee
      wrote on last edited by
      #2

      That's a hard problem, unless you have a reasonably sure way of determining that the user is actually "spending time on a document". A simplistic approach might be to accumulate the time a document view is visible and not mimimized, but that doesn't guarantee that the user is actually working on the document. Also, tracking mouse and keyboard events isn't foolproof, since the user may be reading a document without using the mouse or keyboard. /ravi Let's put "civil" back in "civilization" Home | Articles | Freeware | Music ravib@ravib.com

      1 Reply Last reply
      0
      • T Tony Teveris

        Does anyone know of a way to keep track of time spent on a "document" . I would like to keep track of the time a user spends creating and working on a "document". If s/he stops for some period of time (1 minute) I want the time to stop and pick up again when they start clicking with either the mouse or keyboard. Thanks in advance Tony Teveris Gerber Scientific Products Senior Software Engineer Phone: 860 648 8151 Fax: 860 648 8214 83 Gerber Road West South Windsor, CT 06074

        J Offline
        J Offline
        Joe Woodbury
        wrote on last edited by
        #3

        You could write some VBA, or whatever it's called now, code that interface to a service. (I don't know enough about VBA to know how this would be done but I believe it's doable.) Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

        1 Reply Last reply
        0
        • T Tony Teveris

          Does anyone know of a way to keep track of time spent on a "document" . I would like to keep track of the time a user spends creating and working on a "document". If s/he stops for some period of time (1 minute) I want the time to stop and pick up again when they start clicking with either the mouse or keyboard. Thanks in advance Tony Teveris Gerber Scientific Products Senior Software Engineer Phone: 860 648 8151 Fax: 860 648 8214 83 Gerber Road West South Windsor, CT 06074

          R Offline
          R Offline
          Roger Allen
          wrote on last edited by
          #4

          If any modification the user can do causes a call to SetModifiedFlag() then you could time things of this. You would also have to take account of which view was active. So, have a timer going once/sec in mainframe. Any OnActivateView()/SetModifiedFLag() causes the mainframe 60 sec count to be reset. Else, increment the active documents time variable. Roger Allen - Sonork 100.10016 If your dead and reading this, then you have no life!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups