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
#6
Okay. Well here is an example of the time module.

from time import sleep
import webbrowser
import os

webbrowser.open_new('https://www.halowaypoint.com/en-us/news') # This opens URL with default browser lets assume its chrome.

# Below will wait for 6 minutes before closing chrome.exe 

sleep(600)

os.system("taskkill /im chrome.exe /f")
All this being said. If you want to ensure you don't miss any halo news for example. It wouldn't be too hard to write a script that automatically sends you an email when there is a new post/article with either the link to it or the article itself.

I could probably do this for you.

That all being said, i would really advise you to start learning Python and learn to implement all this stuff yourself, its a really fascinating language with so much to offer, and there are tonnes of communities online like this one here that jump at the opportunity to help you progress.

Harley
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-14-2020, 04:57 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple Python script, path not defined dubinaone 3 2,745 Nov-06-2021, 07:36 PM
Last Post: snippsat
  Help with Creating a Script for Automating Reports SunWers 1 1,957 Dec-29-2020, 10:21 PM
Last Post: jjc385
  Creating a simple rate limiter. DreamingInsanity 0 1,760 May-28-2020, 11:08 AM
Last Post: DreamingInsanity
  Creating an executable from a script wolf8963 6 5,862 May-11-2020, 05:23 PM
Last Post: wolf8963
  Need help creating complex loop around existing script CephloRhod 5 2,820 Apr-16-2020, 01:23 PM
Last Post: deanhystad
  Simple text to binary python script gmills13 2 2,855 Feb-04-2020, 08:44 PM
Last Post: snippsat
  Creating a List with many variables in a simple way donnertrud 1 2,071 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,403 Mar-06-2019, 12:19 AM
Last Post: anddontyoucomebacknomore
  Simple script that seems to misbehave? Nwb 1 2,384 Jun-10-2018, 05:30 AM
Last Post: Nwb
  First time with Python.. need help with simple script shakir_abdul_ahad 7 5,585 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