Questions tagged [idle-processing]

49 questions
4
votes
2 answers

GetLastInputInfo is user specific - is there something similar which gives machine-wide last input time

As per MSDN, http://msdn.microsoft.com/en-us/library/ms646302%28VS.85%29.aspx GetLastInputInfo does not provide system-wide user input information across all running sessions. Rather, GetLastInputInfo provides session-specific user input …
Sameet
  • 2,191
  • 7
  • 28
  • 55
4
votes
1 answer

Calling function to run when idle in matlab

Is it possible in matlab to call a function when the program I'm running is idle? I don't want this to be a parallel process. Also, I would prefer a solution where I could pause and resume the function when the main program has to run again. Kind of…
mugetsu
  • 4,228
  • 9
  • 50
  • 79
3
votes
2 answers

Monitoring user idle time

Developing a mac app, how can I tell whether the user is currently at their computer or not? Or how long ago they last pressed a key or moved the mouse?
zak23
  • 3,378
  • 5
  • 30
  • 28
3
votes
2 answers

Identifying idle state on a windows machine

I know about the GetLastInputInfo method but that would only give me the duration since last user input - keyboard or mouse. If a user input was last received 10 minutes ago, that wouldn't mean the system has been idle for 10 minutes - scans,…
Sameet
  • 2,191
  • 7
  • 28
  • 55
2
votes
1 answer

Android service not working when phone is idle / dozing / locked

Good evening, I've been trying to achieve something for several days now and I literally don't know what else to try, I've basically tried everything I found online and it still doesn't work but I have the feeling that once I find the solution it…
2
votes
1 answer

Detecting idle time in a C# Windows Forms application without Application.Idle

I have a strange issue that I'm not too sure on how to fix or address. I'm writing a mini text editor style application - RichTextBox editor. I need to do some complex parsing after the selection changes - updating position, selection text and…
2
votes
2 answers

usleep() php5 uses 40% of idle CPU

Hi guys I have a weird question, I have a cli php script runs on Centos 5.x which uses usleep (somtimes 1sec, sometimes 2sec, somtimes 100ms it depends) if there is some wait required, but what I have noticed its that once on usleep() it seems to…
Marcin
  • 5,469
  • 15
  • 55
  • 69
1
vote
1 answer

Script to turn off PC if user is inactive for a certain time period in PowerShell

Auto Shutdown if user is inactive. I am trying to create a one time powershell script to shut down the pc if the user is inactive for a period of time. I have done some looking around but the only answer to my problem was using VB. The task…
1
vote
0 answers

Apache unexpectedly lost all idle processes

Sometimes in apache happens that all idle processes are lost. Apache continue running, but every request takes too much time. After a few minutes is everything ok without restarting. In the server there is 512 GB RAM and at the time there was 150 GB…
1
vote
0 answers

Launch application once user inactivity detected C#

I made a C# windows application which opens a user input win form called mywinform.exe . I want to execute this mywinform.exe once their is no user activity for a time period t (no moving/input mouse or keyboard input). I've tried using the windows…
Tak
  • 3,536
  • 11
  • 51
  • 93
1
vote
0 answers

How to detect idle time in Javafx

Im searching for an example how to deal with idle times in javafx and found this perfect answer Idle time in javafx. But how i can add this in my Controller class because i create all on a Fxml class and call this like: FXMLLoader fxmlLoader = new…
tbere
  • 105
  • 1
  • 10
1
vote
1 answer

Detect if user Idle on computer (vs in a windows universal app)

The solution given here : Detect if user Idle on windows universal app allows to detect the user idle inside the app. When the user is active elsewhere, the app considers only the activity in the app. So, how to detect a full user idle on the…
loulou
  • 21
  • 3
1
vote
1 answer

Haskell IdleCallback too slow

I just started designing some graphics in haskell. I want to create an animated picture with a rotating sphere, so I created an IdleCallback function to constantly update the angle value: idle :: IORef GLfloat -> IdleCallback idle angle = do a <-…
michaelg9
  • 85
  • 2
  • 10
1
vote
1 answer

WH_FOREGROUNDIDLE stops when program loses focus

I am trying to do CPU intensive background processing from a form based program. I am using the WH_FOREGROUNDIDLE to detect the idle. The hook does some processing, updates the form and waits for the hook again. It works great until I click on…
Curtis
  • 19
  • 1
1
vote
1 answer

How to get the idle time in Windows XP using VBA?

I would like to know the current idle time from user input on a given Windows XP machine programmatically. I am using VBA in MS Access. What options do I have?
Curtis Inderwiesche
  • 4,940
  • 19
  • 60
  • 82