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. Inactivity Timer

Inactivity Timer

Scheduled Pinned Locked Moved C#
comtutorial
4 Posts 3 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.
  • S Offline
    S Offline
    Stathread
    wrote on last edited by
    #1

    Ok, listen here. I have an application which code I cannot access. It has an Inactivity timer which is running. If I dont touch the pc for more than a certain ammount of time a message will show and log me out. Id like to know how to stop this by writing some code to make it look as though someone is active in windows when really they are not. The only thing i can think of is creating a timer and sending some sort of message to windows to make it look as though we are active. Thanks in Advance.

    www.codewash.com

    O D 2 Replies Last reply
    0
    • S Stathread

      Ok, listen here. I have an application which code I cannot access. It has an Inactivity timer which is running. If I dont touch the pc for more than a certain ammount of time a message will show and log me out. Id like to know how to stop this by writing some code to make it look as though someone is active in windows when really they are not. The only thing i can think of is creating a timer and sending some sort of message to windows to make it look as though we are active. Thanks in Advance.

      www.codewash.com

      O Offline
      O Offline
      originSH
      wrote on last edited by
      #2

      It depends exactly how it defines activity. Theres plenty of apps around if you search for something like "mouse mover".

      1 Reply Last reply
      0
      • S Stathread

        Ok, listen here. I have an application which code I cannot access. It has an Inactivity timer which is running. If I dont touch the pc for more than a certain ammount of time a message will show and log me out. Id like to know how to stop this by writing some code to make it look as though someone is active in windows when really they are not. The only thing i can think of is creating a timer and sending some sort of message to windows to make it look as though we are active. Thanks in Advance.

        www.codewash.com

        D Offline
        D Offline
        Dinobot_Slag
        wrote on last edited by
        #3

        I don't know much about the subject, but I imagine API hooking is what you need. Check out this article for example http://www.codeproject.com/cs/system/WilsonSystemGlobalHooks.asp Somebody correct me if I'm wrong.

        S 1 Reply Last reply
        0
        • D Dinobot_Slag

          I don't know much about the subject, but I imagine API hooking is what you need. Check out this article for example http://www.codeproject.com/cs/system/WilsonSystemGlobalHooks.asp Somebody correct me if I'm wrong.

          S Offline
          S Offline
          Stathread
          wrote on last edited by
          #4

          Thanks Dinobot_Slag, we are on the right track. I need to figure out now how to send like a wm message or somthing so that the hooks being used by the application will see it and believe we are active.

          www.codewash.com

          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