Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

Need help creating Idle Timer

Hello,

I am trying to create a program that essentially checks if there is any input from either mouse or keyboard and if there is no input after a period of time to execute a part of the program.

I guess I will have to monitor for input and reset a timer if there is input however I am unsure how to monitor for input from both keyboard and mouse at the same time any help would be appreciated! I have tried to google but had no joy!
https://www.codeproject.com/Articles/280...rd-Library
http://joelabrahamsson.com/detecting-mou...t-with-net
[Image: bitcoin.png] Be Nice For Once 15hVUVz7xA4kazHdk2BuErENGCskVwjYXP
You have to create a global hook with CallNextHookEx for both keyboard and mouse


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by HackooOct 15, 2020 01:45 AM 1 166 Oct 15, 2020 01:45 AM
Last Post: Hackoo
[Python] by Johan CruyffApr 4, 2020 08:15 AM 2 125 Apr 4, 2020 08:15 AM
Last Post: lnvisible
[.NET] by taleoftwocitiesJan 11, 2019 07:22 AM 1 162 Jan 11, 2019 07:22 AM
Last Post: taleoftwocities