Timer Objects & Idle Events Do Not Work Together - Forum

Forum Navigation
You need to log in to create posts and topics.

Timer Objects & Idle Events Do Not Work Together

I may have brought this up years ago but I've discovered that the Idle Event actions will not execute if there is a Timer object already activated.

My problem is, I have a timer object executing an action every 30 seconds. If the program has not been used in the past 30 minutes, I need another action to execute.

Is there another way to detect if there has NOT been any mouse or keyboard activity in a specified amount of time?

@pauljonestindall

You can track the absence of mouse clicks using the plugin zmFunctions 1.0b (Peter Pavlov) - in the demo file, I show a message if the user has not made 15 seconds mouse clicks in the program.

See the code on the Startup and Subroutines tab (in the project properties), as well as in the Timer object.

Uploaded files:
  • You need to login to have access to uploads.
CN_Iceman has reacted to this post.
CN_Iceman

@vadim

I saw your previous post about the key clicks after I posted this. And I did use zmFunctions - zmSetMouseMonitor "Local" "MouseMonitor" "True" and used a timer. I used the subroutine to stop and start a timer that actually simulates a mouse click (NeoToolBox works but the ClickMouse action doesn't) to prevent another program thinking the computer is idle. So it works. Thanks.

I did notice that the "Global" wouldn't work for me but fortunately I'm running my program full screen on a touch screen.

I still think it's a problem that you can't have an Idle Event when a Timer is active.

@pauljonestindall

Yes, Idle Event does not work when the timer is active. Apparently its activity counts as application activity, I think. That is, this is not a bug of the program, but its peculiarity.

And yes, you are right, the global monitor does not work in zmFunctions on Windows 10 and higher. It is connected with some innovations in operating system itself.

 

CN_Iceman has reacted to this post.
CN_Iceman