This question already has answers here:
set a Python program to expire after a certain number of days
(1 answer)
Simple license protection for Python app
(1 answer)
Closed 10 months ago.
I'm a new coder.
That's why I have a program that I want to ask, but I need to create a timer and the program should not open when the timer is finished, how can I do this? Can you help me with this?
What should I try in this program and make a similar monthly subscription?
import time
time.sleep(5)
5 being the seconds waiting
Related
This question already has answers here:
Spawning multiple instances of the same object concurrently in python
(1 answer)
Is there a way to have different tick rates for differents parts of my code in pygame?
(1 answer)
Closed 9 months ago.
I am making a game in python using pygame in which you click a candy and you get candies. This game is similar to the famous game 'Cookie Clicker'. I've got the clicking part done but I have no idea how to do the auto candies per second. If anybody knows how to do this, please tell me.
This question already has answers here:
How to format elapsed time from seconds to hours, minutes, seconds and milliseconds in Python?
(5 answers)
Stopwatch implementing python
(1 answer)
Dynamic terminal printing with python
(7 answers)
Closed 10 months ago.
I wanted to make a stopwatch that is displayed in seconds and milliseconds.
For example like this 05:847
So 2 characters for seconds and 3 for milliseconds, but I don't really have any idea on how to do this.
If I'm here already, would it be possible to fix the stopwatch to f.e. the bottom right corner of the command line?
This question already has answers here:
Set up a scheduled job?
(26 answers)
Python script to do something at the same time every day [duplicate]
(4 answers)
what is a cron job [closed]
(3 answers)
Closed 2 years ago.
say I have a python program that uploads a photo on Instagram. If I wished to use that program every day,
is there another way of doing so, other then the following (trivial) options?:
run it on your own every day (for ex. with an IDE)
set a timer that performs the operation daily, and run the program with a while(true) loop
the Instagram example is simply for the purpose of the discussion
This question already has answers here:
Clear terminal in Python [duplicate]
(27 answers)
Closed 4 years ago.
I am making a text based rpg in python 3 and the output window gets very cluttered cluttered. I was wondering if there was a way to clear the screen automatically from time to time.
import os
os.system('cls')
You can use os.system('clear') if you are on linux.
This question already has answers here:
Get screenshot on Windows with Python?
(9 answers)
Closed 9 years ago.
Im working on a program and i was wondering if i can use python to snapshot my screen and possibly save it on my computer ?
If you are using Windows, ImageGrab looks like it would work (http://effbot.org/imagingbook/imagegrab.htm).