jimbofoxman Posted July 20, 2015 Share Posted July 20, 2015 Anyone ever had any luck writing something that is a Program is running in windows and that program is minimized/inactive for x minutes it closes the program?We have a scheduling program that has 5 licenses and despite repeated reminders people are not closing it when they are done. We have 5 people that check their schedule every morning, print out a report and then go about their day. About 5 other people occasionally need to get in and schedule stuff.Just found this page so still trying to figure it out. ThanksJim Link to comment Share on other sites More sharing options...
JohnOne Posted July 20, 2015 Share Posted July 20, 2015 Sounds like a relatively easy task on the face of it.Assuming these programs have windows, you should look at and study the examples of the following in the help file....WinListWhile loopTimerInitTimerDiffIf Else Endif conditionWincloseTo get you started. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
kylomas Posted July 20, 2015 Share Posted July 20, 2015 jimbofoxman,Some questions:1 - Does "inactive" mean that no user interaction (mouse or keyboard) has occurred?2 - Do "minimized" and "inactive" mean the same thing in this context?3 - What do you mean by "close the program"? (kill, send termination string, etc...)kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill 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