Python Forum
Need help creating a simple script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help creating a simple script
#4
Okay, so the easiest option here requiring very little knowledge of python, is to just create an executable. Then you can set it to run everyday at a certain time using windows scheduler. Then to close/exit i would set a delay using the time module with sleep in the script itself. Again, this is the easiest option, in my opinion. You would also need to implement the OS module to close the process.

Example:

os.system("taskkill /im chrome.exe /f")
Reply


Messages In This Thread
Need help creating a simple script - by Nonameface - Jul-13-2020, 04:22 AM
RE: Need help creating a simple script - by HarleyQuin - Jul-13-2020, 08:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple Python script, path not defined dubinaone 3 2,797 Nov-06-2021, 07:36 PM
Last Post: snippsat
  Help with Creating a Script for Automating Reports SunWers 1 1,981 Dec-29-2020, 10:21 PM
Last Post: jjc385
  Creating a simple rate limiter. DreamingInsanity 0 1,798 May-28-2020, 11:08 AM
Last Post: DreamingInsanity
  Creating an executable from a script wolf8963 6 5,933 May-11-2020, 05:23 PM
Last Post: wolf8963
  Need help creating complex loop around existing script CephloRhod 5 2,890 Apr-16-2020, 01:23 PM
Last Post: deanhystad
  Simple text to binary python script gmills13 2 2,890 Feb-04-2020, 08:44 PM
Last Post: snippsat
  Creating a List with many variables in a simple way donnertrud 1 2,105 Jan-11-2020, 03:00 PM
Last Post: Clunk_Head
  Made a simple script for android (really simple) but it is not running anddontyoucomebacknomore 2 2,456 Mar-06-2019, 12:19 AM
Last Post: anddontyoucomebacknomore
  Simple script that seems to misbehave? Nwb 1 2,409 Jun-10-2018, 05:30 AM
Last Post: Nwb
  First time with Python.. need help with simple script shakir_abdul_ahad 7 5,735 May-06-2018, 09:28 AM
Last Post: killerrex

Forum Jump:

User Panel Messages

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