How can I get how long my computer's been idle (idle time) using python? [closed] - python

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
The computer obviously stores it sense it knows when to put the screen saver on. Is there a python program that can get the computer's idle time?

This questions has already been answered several times it appears. A quick google search for this topic should give you other stack overflow Q's & A's for this question, but here is one of the previously answered links:
detecting idle time using python

Related

Python. Real-time screen recognition [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 days ago.
Improve this question
I want to put the numbers on the screen as variables in real time.
If the numbers on the screen change, the variables change in real time as well.
example )
Declares the variable "num".
Puts the number you see on the current screen into the variable(num) in real time.
If the number on the screen changes, put the currently visible number in the variable(num).
I've looked it up on many sites, but I don't know how to recognize the screen in real time.
please help me!

How to run a function after another function is done in python [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I just learned python the other day, I was wondering how I can make the function vc_s2() wait for function vc_s1() to be done before running, and the same for vc_s3() with vc_s2()?
Thank you so much in advance!
from funtions import vc_s1, vc_s2, vc_s3
vc_s1()
vc_s2()
vc_s3()
Python runs chronologically, so it goes from top to bottom, as long as you have the 3 functions in order you should be fine.

Running a function with the different functionalities at different times in Python [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I'm looking for a way to create a function that takes two args, time and operation and it does the operation at the given time as an argument. The script should be running on a server and it reads the data from a Redis-like database. I'm trying to find a way to do that avoid using any other frameworks or non-standard packages. Have any idea about that?
See the library https://github.com/dbader/schedule and this example https://github.com/dbader/schedule/blob/master/docs/examples.rst#run-a-job-once

I want to check if online video is streaming or not. How to do it in Python? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I want to write a script to check if I am able to stream an online video in a website. I just want a binary no (0 or 1) to see if the content is working or not and I want to do it via Python.
I have search in the internet but couldn't found an adequate answer.
The easier solution would be to calculate your internet consumption. If your internet consumption is higher than a certain limit, then you may assume that your streaming is working fine. If not, you may configure an alert.

How do you save what you've done in a module without keeping the computer on? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Am going to design a game about raising dragons but don't know a way of saving my session/exp/stats so it would be pointless! Can't work out how to use pickle so can somebody give me an answer?
P.S.Simplify your answers as I am stupid
Here is a link for info on basic I/O in the standard library: http://docs.python.org/tutorial/inputoutput.html You will want to store the data from the game in some format (that is up to you) to a file, and then, later, you will read the file, and parse the data, and put it back into memory when the user comes back from a previous session.

Categories

Resources