My various automation projects
To run, use "Open Macro" in ImageJ software and select the file in saved location
- Asks for directory where images are located
- Saves the file path as "filename"
- Splits different image wavelengths into separate channels and labels each one
- Saves each of the new windows as variables
- Merge all the channels into a single composite image
- Opens colour balance window (manually adjust RGB and click OK to continue)
- Automatically subtracts background (remove second argument to manually adjust)
- Adds a cale bar of set width, height, font, color, background, location (click OK to continue)
- Saves prepped image as a TIFF in variable "filename"
- Automatically opens next file in directory
- Note: User can adjust colours based on naming scheme in step 4 or by changing the colours found in step 5
Automatically follows Instagram users based on the follow.jpg image using pyautogui module
- Note: follow.jpg is a certain size -> Best to create own image for own purposes (or match screen size to image -- difficult)
Copies an entire folder and its contents into a ZIP file whose filename increments using zipfile and os modules
Combines all PDFs in current working directory into a single PDF using PyPDF2 and os modules
A simple countdown script that plays an alarm file once complete. Uses time and subprocess modules
Automatically fills in a specific form using pyautogui and time modules
- Note: This script fills in a specific form by manually inputting the location of the namefields and submit button
Displays top search result links from Google on specified string using requests, sys, webbrowser, bs4 modules
Launches a browser to google maps with inputted string location using webbrowser and sys modules
Saves and loads pieces of text to clipboard (can be used as a password diary) using shelve, pyperclip, sys modules
Downloads XKCD comics into specific folder using multiple threads -- uses requests, os, bs4, threading modules
Launches a browser with separate tabs for each website (used to instantly open a browser with my most commonly daily visited websites -- uses webbrowser module
Prints the weather for a location with inputted string location -- uses json, requests, sys modules
Creates quizes with questions and answers in rawndom order, along with the answer key -- uses random module
Tabulates population and number of census tracts for each county based on 'censuspopdata.xlsx' sheet -- uses openpyxl and pprint modules
Removes header from all CSV files in current working directory -- uses csv and os modules
Renames filenames with American MM-DD-YYYY date format to European DD-MM-YYYY -- uses shutil, os, re modules
Resizes all images in current working directory to fit in a 300x300 square, and adds a specified photo (not included) to lower-right corner -- uses os and PIL modules
Send emails based on payment status in spreadsheet -- uses openpyxl, smtplb, sys modules
Draws a spiral using pyautogui and time modules
Simple stopwatch program that can also track lap times -- uses time module
Corrects costs in produce sales spreadsheet -- uses openpyxl module