Questions tagged [idle-processing]

49 questions
1
vote
1 answer

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 my approach haven't a good performance.
masoud ramezani
  • 22,228
  • 29
  • 98
  • 151
1
vote
1 answer

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
  • 2,964
  • 14
  • 51
  • 80
0
votes
1 answer

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 is 3 hours or even more, the device shutdowns…
0
votes
0 answers

how to check is printer out of paper, Win32_Printer, PrinterState, PrinterStatus, DetectedErrorState not working

bool IsOffline = false; ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_Printer where Name='" + printer_name + "'"); foreach (ManagementObject printer in…
0
votes
1 answer

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 engine. I want it to stay idle, since i use the…
0
votes
1 answer

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 the imaginary number i) Thanks in advance!
0
votes
1 answer

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: def process_queue(self, flush=False): ''' …
KBriggs
  • 1,220
  • 2
  • 18
  • 43
0
votes
1 answer

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
  • 3
  • 1
0
votes
0 answers

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 server in the form of API call the server takes time…
tester9
  • 93
  • 9
0
votes
1 answer

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 5 minutes, I need to get the idle time as 5 minutes…
surendra
  • 551
  • 3
  • 13
  • 27
0
votes
1 answer

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 application and "reserve" the license for them,…
Alek
  • 91
  • 8
0
votes
1 answer

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 virtual machine, and I need the machine to shut itself…
0
votes
1 answer

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 handled internally in that application. We have done…
Manjoor
  • 4,091
  • 10
  • 43
  • 67
0
votes
1 answer

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 process? I think task with PID 0 will be running…
osgx
  • 90,338
  • 53
  • 357
  • 513
0
votes
1 answer

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 the source and play the videoDisplay, it gets…
asawilliams
  • 2,908
  • 2
  • 30
  • 54