RooperGee Posted May 15, 2008 Posted May 15, 2008 I have an autoit script that sends messages to users on our local network. I would like to detect if the user is likely at their computer or not based on mouse and keyboard activity. I can easily compare mouse position over time to sense if they are "working". However, how do I detect if the user is typing away at some program and not touching their mouse at all? I don't really want to use _IsPressed or regular keyboard hooks. Is there an easy way to detect if any key has been pressed or alternatively, is there a way to poll Windows' method of detecting user inactivity that starts the screen saver? Progress lies not in enhancing what is, but in advancing towards what will be. - Kahlil Gibran
spudw2k Posted May 15, 2008 Posted May 15, 2008 Found this by searching for idle time.http://www.autoitscript.com/forum/index.ph...mp;hl=idle+time Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF
RooperGee Posted May 15, 2008 Author Posted May 15, 2008 (edited) Found this by searching for idle time.http://www.autoitscript.com/forum/index.ph...mp;hl=idle+timeAwesome! Thanks spudw2k - I just wasn't using the right search terms. I appreciate the help. Edited May 15, 2008 by RooperGee Progress lies not in enhancing what is, but in advancing towards what will be. - Kahlil Gibran
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now