Jump to content

Recommended Posts

Posted

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?

  • Moderators
Posted

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!

Posted

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

Posted

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

Posted

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 )

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
  • Recently Browsing   0 members

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