Questions tagged [idle-timer]
115 questions
1
vote
1 answer
multiplatform way to retrieve user idle time
I know I can get user idle time using C winapi library as follows:
LASTINPUTINFO lii = {sizeof(LASTINPUTINFO), 0};
GetLastInputInfo(&lii); //error handling ommitted, not the point here
int CurIdleTime = (getTickCount() - (lii.dwTime))/1000;
It is…

Magix
- 4,989
- 7
- 26
- 50
1
vote
1 answer
Use the chrome.idle API to restart application
I have a Chrome kiosk app that basically just uses webview to allow someone to browse through a catalog.
I found the chrome.idle API, and believe I understand how to set idle time and query if the device is idle, but can I have it restart the…

TOWEN
- 13
- 4
1
vote
1 answer
jQuery timer - idle timeout
I am trying to implement Eric Hynds' jquery-idle-timeout dialog which works fine without any issues. But how can I timer / idle timeout to get work even during computer sleep or phone screen-off.
Currently timer getting paused if computer sleeps or…

Dipak G.
- 715
- 1
- 4
- 18
1
vote
2 answers
How to check idle time using jQuery and PHP?
I have a script that uses PHP SESSION. I manage PHP sessions using a class. Within this class I have a method that returns how many seconds remaining before the session expires.
Also, Evey time the user refresh the page or open a new page (new…

Jaylen
- 39,043
- 40
- 128
- 221
1
vote
2 answers
Detecting user inactivity in any VC
I need to be able to keep track of the last user activity (touch on screen). I found this question and answer here however this does not work for me in swift at all. idleTimer.release is not a thing and I just get an error. Also, I am assuming that…

boidkan
- 4,691
- 5
- 29
- 43
1
vote
1 answer
Android Service: Detect when device is idle for X minutes
I need to know to detect when the android device has been idle for a certain period of time when my app is currently in the background (and if it is idle, bring my app to the front). The only two ways I could think of to do this are:
Somehow detect…

uyuyuy99
- 353
- 4
- 11
1
vote
0 answers
Using QTimers in library code - check for existing event loop?
I'm preparing to add an idle timer to a shared KDE library (kwallet). While I presume it will mostly be called from a thread that already has an event loop, I cannot be sure of that. Is there a a way to check for this?
Alternatively, being rather…

RJVB
- 698
- 8
- 18
1
vote
1 answer
How to change idle timer delay time in iOS
Is there any way to change time after which idle timer will dim the sceen? I would like to set it in my app, for instance to 5 seconds of no user interaction.

AYMADA
- 889
- 3
- 17
- 37
1
vote
1 answer
iMacs for public display locked kiosk application when in use and video loop when idle
I have been tasked with deploying several iMacs for public display.
They will need to have an application running at all times (Serato DJ) and upon idle they should display a looped video - using saveHollywood screensaver to loop the and play the…

user3349481
- 11
- 1
1
vote
4 answers
Mouseenter and Mouseleave to trigger timer on/off
How would I code a mouseenter event to trigger timer off and a mouseleave event to trigger the timer on?
If the timer interval is reached then webpage will refresh.
I've tried to do it but couldn't work it out: