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#
  4. Windows Events

Windows Events

Scheduled Pinned Locked Moved C#
question
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.
  • M Offline
    M Offline
    Monin D
    wrote on last edited by
    #1

    Hello, I have an application which sits all the time in system tray. And i want to set user off, when he is inactive. How can I get Windows MouseMove and Windows Keypress events? Thanks.

    C L D 3 Replies Last reply
    0
    • M Monin D

      Hello, I have an application which sits all the time in system tray. And i want to set user off, when he is inactive. How can I get Windows MouseMove and Windows Keypress events? Thanks.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I believe the only event that any icon, tray or system menu, gets, is the click event.

      Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

      1 Reply Last reply
      0
      • M Monin D

        Hello, I have an application which sits all the time in system tray. And i want to set user off, when he is inactive. How can I get Windows MouseMove and Windows Keypress events? Thanks.

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        Have a look at the many "screen saver" articles on Code Project to learn how to detect user activity. I havent done this myself, but I expect it to be rather simple. :)

        Luc Pattyn

        1 Reply Last reply
        0
        • M Monin D

          Hello, I have an application which sits all the time in system tray. And i want to set user off, when he is inactive. How can I get Windows MouseMove and Windows Keypress events? Thanks.

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Monin D. wrote:

          i want to set user off, when he is inactive.

          Wait for the user to become inactive. Light fuse - get away. Should explode in 5 seconds.

          Dave Kreskowiak Microsoft MVP - Visual Basic

          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