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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Handling System Events

Handling System Events

Scheduled Pinned Locked Moved C#
questioncsharphelp
5 Posts 2 Posters 2 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.
  • H Offline
    H Offline
    heavenamour
    wrote on last edited by
    #1

    Hello Every Body How can I handle a system event that is not exposed by the SystemEvents class using c# ? I read somthing about "InvokeOnEventsThread" method in MSDN : public static void InvokeOnEventsThread(Delegate method); But I don't undrestand how I can use it.Please Help Me. Thanx :confused:

    D 1 Reply Last reply
    0
    • H heavenamour

      Hello Every Body How can I handle a system event that is not exposed by the SystemEvents class using c# ? I read somthing about "InvokeOnEventsThread" method in MSDN : public static void InvokeOnEventsThread(Delegate method); But I don't undrestand how I can use it.Please Help Me. Thanx :confused:

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

      What are you calling a "system event"? What "event" are you looking to a notification of? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      H 1 Reply Last reply
      0
      • D Dave Kreskowiak

        What are you calling a "system event"? What "event" are you looking to a notification of? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        H Offline
        H Offline
        heavenamour
        wrote on last edited by
        #3

        Hi... I want to handle system events such as mouse clicks,mouse move and any action that happens out side of my application(When my application is not focused.Such as clicks on desktop or on any other application). Like babylone dictionary and keyloggers.I read an article in code project about system hooks(Global System Hooks in .NET) But hooking is very heavy action.The CPU usage of this sample is 80% to 100% when application is running ! I want a way to trap this events when they happen. Please Guide me !

        D 1 Reply Last reply
        0
        • H heavenamour

          Hi... I want to handle system events such as mouse clicks,mouse move and any action that happens out side of my application(When my application is not focused.Such as clicks on desktop or on any other application). Like babylone dictionary and keyloggers.I read an article in code project about system hooks(Global System Hooks in .NET) But hooking is very heavy action.The CPU usage of this sample is 80% to 100% when application is running ! I want a way to trap this events when they happen. Please Guide me !

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

          The only way to grab the mouse and keyboard events are global system hooks. If written properly, the hooks will not consume any measurable CPU time for days, maybe even weeks. But, of course, this all depends on what your doing with the captured messages. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          H 1 Reply Last reply
          0
          • D Dave Kreskowiak

            The only way to grab the mouse and keyboard events are global system hooks. If written properly, the hooks will not consume any measurable CPU time for days, maybe even weeks. But, of course, this all depends on what your doing with the captured messages. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            H Offline
            H Offline
            heavenamour
            wrote on last edited by
            #5

            Thanx For Your Attention Dave. Your Guid was very useful for me.:rose: Good Luck !

            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