Jump to content

User input timer


Recommended Posts

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

  • Moderators

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

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

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...