51 questions
0
votes
1
answer
64
views
Espresso.onIdle() return error java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
After updating Kotlin to 2.2.0, my autotest started failing on the start screen with the following error in Espresso class on compose view:
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
...
0
votes
0
answers
508
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 ...
3
votes
1
answer
4k
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 ...
0
votes
1
answer
231
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 ...
4
votes
1
answer
4k
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 ...
0
votes
1
answer
264
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:
...
0
votes
0
answers
64
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 ...
1
vote
0
answers
786
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 ...
1
vote
1
answer
323
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.
...
1
vote
1
answer
90
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 :: ...
20
votes
4
answers
27k
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 ...
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 ...
0
votes
3
answers
84
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 ...
0
votes
2
answers
490
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 ...
4
votes
1
answer
516
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 ...
10
votes
1
answer
18k
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 ...
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 ...
4
votes
2
answers
428
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 ...
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 ...
0
votes
1
answer
403
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 ...
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 ...
1
vote
1
answer
970
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 ...
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 ...
4
votes
3
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,
...
84
votes
3
answers
46k
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 ...