Python Forum
function call at defined system time?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
function call at defined system time?
#5
Here a very naive approach: https://datatofish.com/python-script-windows-scheduler/
Another tutorial (not much different from first one): https://www.jcchouinard.com/python-autom...scheduler/

Instead of using python.exe or a .bat file, you should use py.exe -3.6 your_program.py.
(Python 3.9 was released yesterday)

If your application is not a console application or if you want to hide the console, use instead of py.exe pyw.exe.

For testing it, I've used this code:
import sys
from tkinter import Tk
from tkinter.messagebox import showinfo


root = Tk()
root.withdraw()
showinfo("Hello from Python", sys.version)
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
function call at defined system time? - by Holon - Oct-06-2020, 08:10 AM
RE: function call at defined system time? - by DeaD_EyE - Oct-06-2020, 02:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Variable is not defined error when trying to use my custom function code fnafgamer239 4 605 Nov-23-2023, 02:53 PM
Last Post: rob101
  Printing the variable from defined function jws 7 1,343 Sep-03-2023, 03:22 PM
Last Post: deanhystad
  return next item each time a function is executed User3000 19 2,316 Aug-06-2023, 02:29 PM
Last Post: deanhystad
  How do I call sys.argv list inside a function, from the CLI? billykid999 3 802 May-02-2023, 08:40 AM
Last Post: Gribouillis
  Getting NameError for a function that is defined JonWayn 2 1,125 Dec-11-2022, 01:53 PM
Last Post: JonWayn
Question Help with function - encryption - messages - NameError: name 'message' is not defined MrKnd94 4 2,917 Nov-11-2022, 09:03 PM
Last Post: deanhystad
  How to print the output of a defined function bshoushtarian 4 1,323 Sep-08-2022, 01:44 PM
Last Post: deanhystad
  User-defined function to reset variables? Mark17 3 1,668 May-25-2022, 07:22 PM
Last Post: Gribouillis
  Mock obj - How to call the side_effect every time during the run? pythonisbae 3 2,659 Mar-06-2022, 09:37 AM
Last Post: pythonisbae
  time function does not work tester_V 4 3,059 Oct-17-2021, 05:48 PM
Last Post: tester_V

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020