last mouse movment or keyboard hit

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ron Eggler

    last mouse movment or keyboard hit

    Hi,

    I would like to get the time of the most recent human activity like a cursor
    movement or a key hit.
    Does anyone know how I can get this back to start some action after there
    has been no activity for X minutes/seconds?
    Thank you!

    --
    chEErs roN
  • Gabriel Genellina

    #2
    Re: last mouse movment or keyboard hit

    En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler <ron@example.co mescribió:
    I would like to get the time of the most recent human activity like a
    cursor
    movement or a key hit.
    Does anyone know how I can get this back to start some action after there
    has been no activity for X minutes/seconds?
    Which platform? On non-ancient Windows versions, you can periodically
    check GetLastInputInf o



    --
    Gabriel Genellina

    Comment

    • Ron Eggler

      #3
      Re: last mouse movment or keyboard hit

      Gabriel Genellina wrote:
      En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler <ron@example.co mescribió:
      >
      >I would like to get the time of the most recent human activity like a
      >cursor
      >movement or a key hit.
      >Does anyone know how I can get this back to start some action after there
      >has been no activity for X minutes/seconds?
      >
      Which platform? On non-ancient Windows versions, you can periodically
      check GetLastInputInf o
      >
      http://msdn.microsoft.com/library/de...tinputinfo.asp
      >
      >
      No, it would be for Linux and preferrably it would work on MacOS & Windows
      as well....is there anything?
      Thanks!
      --
      chEErs roN

      Comment

      • azrael

        #4
        Re: last mouse movment or keyboard hit

        You can use wxPython. Take a look on the DemoFiles that you can
        download also from the site. I remember that there has been a demo of
        capturing mouse coordinates and also one example about capturing Which
        key has been pressed at which time.
        Just start the time, count the interactions of key strokes and mouse
        gestures. Apply some statistics and voila. there it is.





        On Mar 26, 3:28 pm, Ron Eggler <r...@example.c omwrote:
        Gabriel Genellina wrote:
        En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler <r...@example.c omescribió:
        >
        I would like to get the time of the most recent human activity like a
        cursor
        movement or a key hit.
        Does anyone know how I can get this back to start some action after there
        has been no activity for X minutes/seconds?
        >
        Which platform? On non-ancient Windows versions, you can periodically
        check GetLastInputInf o
        >
        http://msdn.microsoft.com/library/de...ary/en-us/winu...
        >
        No, it would be for Linux and preferrably it would work on MacOS & Windows
        as well....is there anything?
        Thanks!
        --
        chEErs roN

        Comment

        • Gabriel Genellina

          #5
          Re: last mouse movment or keyboard hit

          >En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler <r...@example.c om>
          >escribió:
          >>
          >I would like to get the time of the most recent human activity like a
          >cursor
          >movement or a key hit.
          >Does anyone know how I can get this back to start some action after
          >there
          >has been no activity for X minutes/seconds?
          En Wed, 26 Mar 2008 13:59:15 -0300, azrael <jura.grozni@gm ail.com>
          escribió:
          You can use wxPython. Take a look on the DemoFiles that you can
          download also from the site. I remember that there has been a demo of
          capturing mouse coordinates and also one example about capturing Which
          key has been pressed at which time.
          (Please don't top post)
          Does wx catch all events in all other applications?
          My understanding is that the OP wants a global detection, not restricted
          to a single application.

          --
          Gabriel Genellina

          Comment

          • Ron Eggler

            #6
            Re: last mouse movment or keyboard hit

            azrael wrote:
            You can use wxPython. Take a look on the DemoFiles that you can
            download also from the site. I remember that there has been a demo of
            capturing mouse coordinates and also one example about capturing Which
            key has been pressed at which time.
            Just start the time, count the interactions of key strokes and mouse
            gestures. Apply some statistics and voila. there it is.
            But that wouldn't be system wide, would it? :o

            On Mar 26, 3:28 pm, Ron Eggler <r...@example.c omwrote:
            >Gabriel Genellina wrote:
            En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler <r...@example.c om>
            escribió:
            >>
            >I would like to get the time of the most recent human activity like a
            >cursor
            >movement or a key hit.
            >Does anyone know how I can get this back to start some action after
            >there has been no activity for X minutes/seconds?
            >>
            Which platform? On non-ancient Windows versions, you can periodically
            check GetLastInputInf o
            >>
            >http://msdn.microsoft.com/library/de...ary/en-us/winu...
            >>
            >No, it would be for Linux and preferrably it would work on MacOS &
            >Windows as well....is there anything?
            >Thanks!
            >--
            >chEErs roN
            --
            chEErs roN

            Comment

            • Ron Eggler

              #7
              Re: last mouse movment or keyboard hit

              Gabriel Genellina wrote:
              >>En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler <r...@example.c om>
              >>escribió:
              >>>
              >>I would like to get the time of the most recent human activity like a
              >>cursor
              >>movement or a key hit.
              >>Does anyone know how I can get this back to start some action after
              >>there
              >>has been no activity for X minutes/seconds?
              >
              En Wed, 26 Mar 2008 13:59:15 -0300, azrael <jura.grozni@gm ail.com>
              escribió:
              >
              >You can use wxPython. Take a look on the DemoFiles that you can
              >download also from the site. I remember that there has been a demo of
              >capturing mouse coordinates and also one example about capturing Which
              >key has been pressed at which time.
              >
              (Please don't top post)
              Does wx catch all events in all other applications?
              My understanding is that the OP wants a global detection, not restricted
              to a single application.
              Exactly, I would like to have it global/system widely detected

              --
              chEErs roN

              Comment

              • Diez B. Roggisch

                #8
                Re: last mouse movment or keyboard hit

                Ron Eggler schrieb:
                Hi,
                >
                I would like to get the time of the most recent human activity like a cursor
                movement or a key hit.
                Does anyone know how I can get this back to start some action after there
                has been no activity for X minutes/seconds?
                Try hooking yourself into the OS screen-saver-code.

                Diez

                Comment

                • Ron Eggler

                  #9
                  Re: last mouse movment or keyboard hit

                  Diez B. Roggisch wrote:
                  Ron Eggler schrieb:
                  >Hi,
                  >>
                  >I would like to get the time of the most recent human activity like a
                  >cursor movement or a key hit.
                  >Does anyone know how I can get this back to start some action after there
                  >has been no activity for X minutes/seconds?
                  >
                  Try hooking yourself into the OS screen-saver-code.
                  I have looked at the KDE code but couldn't quite figure out how it's
                  working... :o Any help would be appreciated!
                  --
                  chEErs roN

                  Comment

                  Working...