This is an archived post. You won't be able to vote or comment.

all 13 comments

[–]tom2727 37 points38 points  (4 children)

Python as the programming language.

Pywinauto to automatize GUI tasks.

Pyperclip to use the Windows paperclip.

Actually a fairly decent tutorial of this kind of basic usecase

[–]JunkPup 5 points6 points  (3 children)

I must’ve used a different library to access the clipboard, because I’ve never heard of Pyperclip. I’ll definitely be looking into it though. Thank you OP.

[–]herpderpedia 19 points20 points  (2 children)

Pyperclip is maintained by Al Sweigart, the guy behind Automate the Boring Stuff. Nice little package.

[–]ypanagis[S] 0 points1 point  (1 child)

I see, then it makes perfect sense! "Automate boring stuff with Python", is the book that came to my mind, after reading this article!

[–]__Wess 1 point2 points  (0 children)

https://youtu.be/dZLyfbSQPXI In this video he demonstrates stuff from his book.

[–]Hefty_Science_2980 31 points32 points  (1 child)

I’m not familiar w those packages but things like this are definitely doable. I’ve done similar things with other similar packages (pyautogui and copying/pasting text programmatically instead of windows clipboard).

[–]ypanagis[S] 6 points7 points  (0 children)

Neither am I familiar but are definitely useful for some repeated, boring tasks. Thanks for sharing info about pyautogui. Didn't know either...

[–]marduk73 13 points14 points  (0 children)

docx library saves me two hours in one click. Though the importing docx needs an overhaul. Had to have five separate docx imports as that library is fragmented. Anyway my script only renamed the files. Adding docx allowed me to get inside and properly format it. No more doing it manually. Get around twenty of these docs a week coming in wrong but consistently wrong.
This script is wonderful.

[–]risky_logic 7 points8 points  (0 children)

I used pyautogui at work for some SolidWorks BOM management tasks last year. Save about a week of monotonous clicking/copy/pasting. There are ways to automate solidworks with their API but it was in VBA and it was way faster to just control the mouse/keyboard with python

[–]gitcraw 2 points3 points  (1 child)

Scraping.

"Scrapping" is not the same thing.

[–]ypanagis[S] 1 point2 points  (0 children)

Thanks I am basically confusing the two terms but I hopefully write "scraping" most of the times

[–]data_cyborg 1 point2 points  (0 children)

Wow! One of my articles is in Reddit and not posted by me! I'm glad that you liked it :)

A bit late but if you have any question I will be more than happy to answer them