Python Forum
The following script works but I need to take it one step further to milliseconds.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The following script works but I need to take it one step further to milliseconds.
#1
import schedule
import pyautogui
 
def job():
    pyautogui.click()
 
schedule.every().day.at("04:39:03").do(job)
 
while True:
    schedule.run_pending()
Could someone point me in the right direction as to how I can set the time to milliseconds? I tried ("04:39:03:200") but it wouldn't work.

Thank you in advance for any help,
yeto
Reply
#2
I doubt that it's supported -https://schedule.readthedocs.io/en/stable/search.html?q=milli

(Searching for "sec" reveals results for seconds.)

That said, I would try "04:39:03.200" (note the dot instead of the colon at the end) because I've seen that format used before, I don't think I've seen it with just colons.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVED] Epoch timestamp without milliseconds? Winfried 5 2,843 Jan-27-2023, 04:35 PM
Last Post: deanhystad
  script with imports works but pytest gives "ModuleNotFoundError"? Hpao 0 1,544 Jun-27-2021, 08:30 PM
Last Post: Hpao
  “NameError” “is not defined” script that I know works on other computers iamwithstupid 0 2,475 Nov-24-2020, 04:23 PM
Last Post: iamwithstupid
  script works in windows but not in linux ovidius80 2 2,689 Apr-29-2020, 02:10 PM
Last Post: ovidius80
  Script works when executed from command prompt but not when executed in SDP Tippex 0 1,965 Apr-07-2020, 04:26 PM
Last Post: Tippex
  Why my program works from script but not from GUI? Matgaret 0 1,521 Dec-13-2019, 01:51 PM
Last Post: Matgaret
  Script works ok on windows but gives error on ubuntu papampi 3 4,010 Oct-11-2017, 04:17 PM
Last Post: papampi
  Best way to blink an output every 500 milliseconds? dbsoundman 2 4,525 Jul-24-2017, 02:45 PM
Last Post: dbsoundman
  Dict KeyError in cgi-bin script, works fine via console dbsoundman 2 3,870 Jul-21-2017, 08:03 PM
Last Post: dbsoundman

Forum Jump:

User Panel Messages

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