Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Can I detect if the computer is in use?

If you have a question or need help, this is the place to be.
Post Reply
Telorast
Posts: 46
Joined: Wed Feb 27, 2013 2:44 pm

Can I detect if the computer is in use?

Post by Telorast »

I'd like to lower the volume of my speakers in other rooms if the computer is being used and then restore the volume when the computer is unused for a certain time, say 1 minute.

Is there a way to detect if the computer is in use?
Or maybe there is a sensor I could use? Perhaps a laser rangefinder pointing at the user?
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: Can I detect if the computer is in use?

Post by blaher »

The events:

System.Idle
System.Unidle

from memory.
hello_kitty
Posts: 2
Joined: Mon May 05, 2014 7:25 am

Re: Can I detect if the computer is in use?

Post by hello_kitty »

Could you describe how to do it in more details?
V_J
Experienced User
Posts: 165
Joined: Tue Mar 04, 2014 9:00 am

Re: Can I detect if the computer is in use?

Post by V_J »

If you leave your computer for some time unused, there suddenly will be a new entry in the EventGhost eventlog, with the name system.idle. When you then use a mouse or keyboard, there will be a new event with the name system.unidle. These events could be used to detect if somebody is at the computer or not: system goes idle if nobody is there, system goes unidle if somebody works on the computer.

I'm not sure how you can change the time before the system goes to idle, as on my computer it is quite short: the event system.idle can pop-up when reading a long text on a website, or thinking about a piece of code. But you might just start a timer when the system goes to idle, and if it does not go to unidle with the time set in the timer, you can assume the person is not there.
Post Reply