Questions tagged [idle-processing]

The tag has no usage guidance.

idle-processing
Filter by
Sorted by
Tagged with
83 votes
3 answers
45k views

C# - Detect time of last user interaction with the OS

I'm writing a small tray application that needs to detect the last time a user interacted with their machine to determine if they're idle. Is there any way to retrieve the time a user last moved ...
djdd87's user avatar
  • 68k
25 votes
2 answers
19k views

PG::TRDeadlockDetected: ERROR: deadlock detected

I am restarting 8 puma workers via bundle exec pumactl -F config/puma.rb phased-restart what works fine. Now I am getting more and more postgres errors: PG::TRDeadlockDetected: ERROR: deadlock ...
Railsana's user avatar
  • 1,832
20 votes
4 answers
26k views

How to use Espresso Idling Resource for network calls

Im trying to use Espresso to test my UI. When i login into my application, i do a call to Parse API (network call) to verify the username and password. If all is well the user gets directed to a new ...
Dennis Anderson's user avatar
17 votes
13 answers
112k views

Trying to connect internally to Oracle, getting an idle instance?

So I have an Oracle instance, and I know it's running on this system, I've su'd to the oracle user, and I'm trying to connect using "/ as sysdba". However, when I do connect, it says the instance is ...
user avatar
10 votes
1 answer
17k views

Application.Idle event significance

What I know about the Application.Idle event is that the application is finishing its processing and is about to enter the idle state. I read somewhere that If you have tasks that you must ...
peter's user avatar
  • 8,416
9 votes
3 answers
8k views

Why peekmessage before getmessage?

Why the peekMessage statement is required before Getmessage() for creating message queue?
Josh's user avatar
  • 93
9 votes
1 answer
687 views

Python inside GNU Screen eventually becomes idle if Screen is dettached

I have a python script which uses multiprocessing and subprocess to launch multiple external commands in parallel with different arguments. The code can be found here. For convenience I launch this ...
unode's user avatar
  • 9,441
8 votes
1 answer
4k views

JavaFX 2 User Idle Detection

I'm trying to make a simple Java transaction app with JavaFX as UI. What I want to do now is to detect user idle state from my application which has 1 primary stage and many scenes. Example : if user ...
ran88's user avatar
  • 105
8 votes
2 answers
2k views

Detect if user Idle on windows universal app

I'm developing a class library for windows 10 universal apps (mobile and desktop device families only). I need to invoke an event if the user has been idle(no touch, mouse move, key press etc) for x ...
Kavinda Gayashan's user avatar
6 votes
3 answers
2k views

What should C program do in idle time when running on Linux?

I've written many C programs for microcontrollers but never one that runs on an OS like linux. How does linux decide how much processing time to give my application? Is there something I need to do ...
PICyourBrain's user avatar
  • 10.2k
6 votes
5 answers
6k views

Java: Checking if PC is idle

This is a rather tricky question as I have found no information online. Basically, I wish to know how to check if a computer is idle in Java. I wish a program to only work if the computer is in active ...
Scott Straughan's user avatar
5 votes
3 answers
5k views

Detect user idle (per application instance)

I need user idle detection in my application only (per "my application instance"). I can't use GetLastInputInfo because is session-specific user input: GetLastInputInfo does not provide system-wide ...
halorty's user avatar
  • 654
4 votes
7 answers
6k views

Safest way to idle delphi application to wait for timer?

I am doing a delphi application that will run on my pc 24/7 in the background and will check if it has to do some actions or not, wait 30 minutes and check again, and so on. How can I make sure the ...
Sebastian's user avatar
  • 796
4 votes
4 answers
5k views

How to Prevent ProcessMessages in Delphi

The Application.ProcessMessages command is well known and I use it in long processes to ensure my program will not tie up the computer. But I have one fairly quick set of processing, where I am ...
lkessler's user avatar
  • 20.1k
4 votes
2 answers
412 views

Exception in the OnIdle event does not bubble up

On my main form, I subscribed to two events: Application.ThreadException and Application.Idle. In theory, any exception that is not caught should get bubbled up to the main form. However, this does ...
sthay's user avatar
  • 495
4 votes
2 answers
3k views

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, ...
4 votes
1 answer
506 views

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 ...
mugetsu's user avatar
  • 4,308
3 votes
1 answer
3k views

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 ...
Louen's user avatar
  • 37
3 votes
2 answers
2k views

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 ...
Sameet's user avatar
  • 2,191
3 votes
2 answers
926 views

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's user avatar
  • 3,398
2 votes
2 answers
3k views

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 ...
Marcin's user avatar
  • 5,529
2 votes
1 answer
2k views

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 ...
Linda Seacrest's user avatar
2 votes
1 answer
1k views

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 ...
eruannaa's user avatar
1 vote
1 answer
2k views

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's user avatar
1 vote
1 answer
966 views

Is there a way to detect inactive time of a user in a website? (Idle time)

This is my approach : I reserve last time that a user post a postback to server in a session and in every postback subtract this value from current value. Is there a better way for this? I think that ...
masoud ramezani's user avatar
1 vote
1 answer
1k views

Detecting internet idle time

How do I detect when the internet is idle (no download/upload) using C#, and initiate a download when it is?
Suriyan Suresh's user avatar
1 vote
1 answer
88 views

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 :: ...
michaelg9's user avatar
1 vote
0 answers
104 views

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 ...
Pavel Sztefek's user avatar
1 vote
0 answers
445 views

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 ...
Tak's user avatar
  • 3,586
1 vote
0 answers
752 views

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 ...
tbere's user avatar
  • 125
1 vote
1 answer
309 views

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. ...
loulou's user avatar
  • 21
1 vote
1 answer
335 views

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 ...
Curtis 's user avatar
0 votes
3 answers
80 views

Doing something in WP8 app when user does nothing for some seconds (kinda user idle mode)

My scenario. A page of my WP8 Silverlight app contains a ListBox control with the ability of item multiselection. When the user tap an item to toggle its selection state, I should perform a long ...
TecMan's user avatar
  • 2,879
0 votes
1 answer
179 views

How to keep a python script idle without using too many ressources

Basically the title, i have a small python script (python 3.9, Windows 10) that i would like to keep running in the background. It is currently listening for keyboard hotkeys and acting like a macro ...
LostExcalibur's user avatar
0 votes
1 answer
233 views

tkinter optionmenu hangs when clicked if after_idle is called elsewhere in the program

I have a GUI that processes messages serially as they arrive and get queued up by several websockets. This function sets up a callback to itself using after_idle to perpetuate the process, like so: ...
KBriggs's user avatar
  • 1,270
0 votes
1 answer
1k views

Shut down machine after being idle with batch file?

I don't even know if this is possible, but is there anyway to shut down a machine after (n) minutes, using a batch file? Currently I already have a batch file which works alongside ranorex and a ...
Danny Goodall's user avatar
0 votes
2 answers
480 views

Ways of detecting Windows Phone idle

I want to perform some calculations while the phone is in locked screen mode, regardless if the app is on the foreground or the background. I know that in order to do this, I need to use OnObscured ...
programmer23's user avatar
0 votes
1 answer
389 views

linux kernel idle tick eater (or what will be current task_struct when CPU is 0%)

What process will be pointed by "current" pointer in linux kernel, when CPU load is 0% and there isn't any ready-to-run process? Consider situation without any power-saving. What is the name of this ...
osgx's user avatar
  • 92k
0 votes
1 answer
247 views

Automatically scroll when mouse is idle

I need to find a way to randomly scroll horizontally and vertically, plus or minus a set number of pixels per second in each dimension, when the mouse has been idle for a set amount of time. Any ideas ...
Robert C.'s user avatar
0 votes
0 answers
107 views

Javascript: requestIdleCallback with timeout is always fired immediately

I want to send analytics data to server at low priority. My function is: const schedule_serversync = function (deadline) { if (deadline.timeRemaining() > 0) { server_sync(); //async ...
PC.'s user avatar
  • 6,945
0 votes
1 answer
327 views

Powershell Script - Shutdown PC after set idle time

I have to write a PowerShell script that will automatically be sent every hour from 9 PM til 4 AM through deployment software. This script should find out how long the PC is idle and if the idle time ...
serlag8622's user avatar
0 votes
1 answer
436 views

Complex numbers calculator

So, if I type (4*9j**2) into the console, it returns (-324+0j) Is there any way to re-create this with code, basically, take input and simplify it as if you just typed it into the console (j acts as ...
Epicdaface25's user avatar
0 votes
1 answer
368 views

bash script: getting idle time and compare it

Why is the if-compression not comparing the value? idle_time=exec sudo -u home xprintidle if [ "$idle_time" -ge 6000 ] then echo "hi" fi it is not working like that
tokarevv1's user avatar
0 votes
0 answers
62 views

PaaS providers where servers don't sleep because of idleness as Heroku?

I am looking for a NodeJS deployment platform. Currently I have the server deployed on Heroku wherein if your server doesn't get a hit in 30 mins, it goes to sleep. Then when the app pings the ...
tester9's user avatar
  • 93
0 votes
1 answer
3k views

How to know idle time for process running in system

All, I am using windows 7 os I would like to know the idle time for each application or process running in my machine. Ex: I opened one process like notepad.exe but I am not working on it from last ...
surendra's user avatar
  • 571
0 votes
1 answer
165 views

Detect existing idle application

I have a problem and I need a approach for the next problem: Lets say there is an application "A". This application "A" can be used only if you have a license. There are couple of users that use this ...
Alek's user avatar
  • 91
0 votes
1 answer
225 views

How to implement an browser idle system?

What I want to do is to check if the user of my Ember application is in idle mode in the browser, and if so I want to implement some rules. Please check the following example. if (User is idle) ...
Stefan Ciprian Hotoleanu's user avatar
0 votes
1 answer
231 views

Third party Application's Idle Session expiry

We have a third party application running. It shows login dialog when idle for 20 minutes. We need to prevent the application to display login screen. We do not have any idea how idle state is ...
Manjoor's user avatar
  • 4,139
0 votes
1 answer
372 views

Flex VideoDisplay reconnect after idletimeout

I have a VideoDisplay that is able to connect to a source and play. After the connection times out I want the connection to be re-established when my play button is clicked. Right now when I reset ...
asawilliams's user avatar
  • 2,928