<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/python-script-that-kept-me-online-all-day-vbptwsvc9" -->

---
title: Python Script That Kept Me Online All Day | daily.dev
description: Working from home is very stressful, especially when there are different time zones. Here is a small Python script that kept me online all day while doing work...
canonical: https://daily.dev/posts/python-script-that-kept-me-online-all-day-vbptwsvc9
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Python Script That Kept Me Online All Day | daily.dev
og:description: Working from home is very stressful, especially when there are different time zones. Here is a small Python script that kept me online all day while doing work...
og:url: https://daily.dev/posts/python-script-that-kept-me-online-all-day-vbptwsvc9
og:image: https://api.daily.dev/og/posts/VbptwSVc9.png
og:image:alt: Python Script That Kept Me Online All Day
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Python Script That Kept Me Online All Day

**[Python in Plain English](https://daily.dev/sources/inPlainEngHQ)** · 2 min read · 36 upvotes · 4 comments

## Summary

Working from home is very stressful, especially when there are different time zones. Here is a small Python script that kept me online all day while doing work from home. Installing libraries pyautogui library PyAutoGUI lets Python control the mouse and keyboard, and other GUI automation tasks.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://python.plainenglish.io/python-script-that-kept-me-online-all-day-2957c62ec44d?source=rss----78073def27b8---4>

## Community discussion

Top comments from developers on daily.dev.

**@alperenozdemir** · 4 upvotes

> I recommend using caffeine on behalf of Windows and macOS to keep the system awake.

**@gabrielkoo** · 1 upvotes

> Another alternative I have used before - pyautoit - which is also great as for less tech people you can use their original software to record your steps and reply as automation too, somewhat like VBA Macro recording does.

**@azadarec** · 1 upvotes

> I wrote a Powershell script for that, which just sends a dot every minute. It does the job and I also made the runtime for the script configurable

**@logrus66** · 0 upvotes

> i feel lucky . my company does not control people in that regard

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#python](https://daily.dev/tags/python)

[View this post on daily.dev](https://daily.dev/posts/python-script-that-kept-me-online-all-day-vbptwsvc9)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Python Script That Kept Me Online All Day","url":"https://daily.dev/posts/python-script-that-kept-me-online-all-day-vbptwsvc9","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/python-script-that-kept-me-online-all-day-vbptwsvc9"},"datePublished":"2022-10-07T10:25:38.376Z","dateModified":"2022-10-07T10:25:38.375Z","description":"Working from home is very stressful, especially when there are different time zones. Here is a small Python script that kept me online all day while doing work...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/758ea4ec61562652facbab8060ed7c17","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/758ea4ec61562652facbab8060ed7c17","isAccessibleForFree":true,"articleSection":"Python in Plain English","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Python in Plain English","logo":"https://media.daily.dev/image/upload/s--Dg5QTRuI--/f_auto,q_auto/v1686665538/logos/pe","url":"https://daily.dev/sources/inPlainEngHQ"},"commentCount":4,"discussionUrl":"https://daily.dev/posts/python-script-that-kept-me-online-all-day-vbptwsvc9","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":36},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":4}],"keywords":"webdev,python","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Python in Plain English","item":"https://daily.dev/sources/inPlainEngHQ"},{"@type":"ListItem","position":3,"name":"Python Script That Kept Me Online All Day"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/python-script-that-kept-me-online-all-day-vbptwsvc9","comment":[{"@type":"Comment","text":"I recommend using caffeine on behalf of Windows and macOS to keep the system awake.","datePublished":"2022-10-07T12:26:40.210Z","dateModified":"2022-10-07T14:34:51.863Z","url":"https://daily.dev/posts/VbptwSVc9#c-MGJHK-4KB","author":{"@type":"Person","name":"Alperen Özdemir","url":"https://daily.dev/alperenozdemir","image":"https://avatars.githubusercontent.com/u/16361049?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4}},{"@type":"Comment","text":"Another alternative I have used before - pyautoit - which is also great as for less tech people you can use their original software to record your steps and reply as automation too, somewhat like VBA Macro recording does.","datePublished":"2022-10-11T03:13:28.802Z","url":"https://daily.dev/posts/VbptwSVc9#c-M-R4CWPvR","author":{"@type":"Person","name":"Gabriel Koo","url":"https://daily.dev/gabrielkoo","image":"https://avatars.githubusercontent.com/u/16297877?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"I wrote a Powershell script for that, which just sends a dot every minute. It does the job and I also made the runtime for the script configurable","datePublished":"2022-10-10T10:34:03.230Z","url":"https://daily.dev/posts/VbptwSVc9#c-1aAs2gYvP","author":{"@type":"Person","name":"Flo","url":"https://daily.dev/azadarec","image":"https://avatars.githubusercontent.com/u/85111583?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"i feel lucky . my company does not control people in that regard","datePublished":"2023-01-03T09:58:59.290Z","url":"https://daily.dev/posts/VbptwSVc9#c-pm4iyKuPP","author":{"@type":"Person","name":"antares667367","url":"https://daily.dev/logrus66","image":"https://avatars.githubusercontent.com/u/7988969?v=4"}}]}
```

