RedneckTech Posted January 4, 2012 Share Posted January 4, 2012 I'm trying to make it so that a script will only run if there has been no user input for timeX. Cant do system idle time as there are certain programs running in the background. been playing with _Timer_getidletime after finding the link below. Having no luck though because of the system not being actually idle. Any advice? Link to comment Share on other sites More sharing options...
KaFu Posted January 4, 2012 Share Posted January 4, 2012 Did some work on this one a while ago. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 4, 2012 Moderators Share Posted January 4, 2012 Hi, RednekTech. What do you equate to "user input", any movement of the mouse, or specifically interacting with your script? If you are looking for any movement of the mouse, look at the Helpfile under Mouse Management. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
RedneckTech Posted January 4, 2012 Author Share Posted January 4, 2012 im looking for mouse or keyboard input from the user. i have windows that will and are supposed to pop up as needed. @ kafu that script looks awesome. really impressive work. just to clarify by your comment on it. does this work if the keyboard and mouse are inactive? i have scripts running that do a lot of command line and i need the windows to stay open just incase they would fail Link to comment Share on other sites More sharing options...
KaFu Posted January 4, 2012 Share Posted January 4, 2012 Hmmm, what do you want the script to do if it detects an idle period? Just keep the station open and unlocked? Or should the script perform certain tasks? OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
RedneckTech Posted January 4, 2012 Author Share Posted January 4, 2012 Well ive copied and edited, but im just trying to make sure that it does not run the command if the user has not touched the keyboard or mouse for a certain time. these guys like to work late so i have to be wary with some things Link to comment Share on other sites More sharing options...
RedneckTech Posted January 5, 2012 Author Share Posted January 5, 2012 considering its related to the same script ill leave it here. anyone know if there is a command such as GetHost () that returns the hostname so i can use it?trying to do something like this:$Name = GetHost([Flags])FileOpen ("ServerShare" & $Name & ".txt" , 0 ) Link to comment Share on other sites More sharing options...
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