Skip to Main Content

Pan-American Authorities (PANA): Automation Tool

Automation Tool

What is AutoHotkey? 

AutoHotKey is a windows scripting language designed to automate repetitive tasks using keyboard shortcuts. 

How can AutoHotKey be used in the PANA workflow? 

The UF PANA group is using AutoHotKey to streamline the term collection phase of the PANA workflow. 

Instructions 

These instructions are intended for members of the PANA group. For general information on creating basic scripts using AutoHotkey, please visit this libguide.

  1. If you don’t already use Google Chrome, install it here: https://www.google.com/chrome/

    • Note: In your Google Chrome browser, you will need to save the username and password for the PANA resources that require them (i.e. Armarc and lcsh-es.org) before you run a script. The scripts operate under the assumption that the username and passwords are pre-filled when you visit the resource’s website. 

  1. Download and Install AutoHotKey: https://www.autohotkey.com/ 

  2. In your web browser, navigate to the PANA GitHub repository: https://github.com/rechey/PANA 

  3. On the GitHub page, click on the "Code" button, and then click "Download ZIP." 

  1. Locate the downloaded ZIP file and extract its contents to a folder of your choice. 

  1. Inside the extracted folder, you will find different types of scripts for each term collector. Locate the files with your name. 

    • Note: Each term collector will be assigned two scripts, Script A and Script B. Both scripts are designed to execute simple keyword searches. Script A is designed to perform a search for the first term in our assigned terms list, while Script B is designed to perform searches for each subsequent term in our assigned term list. 

  1. Edit the script labeled "YourName_ScriptA using a text editor like Notepad by right-clicking on it and selecting the "Edit Script" option. 

  2. For this step, refer to screenshot below: 

    • Find the target location for Google Chrome inside the code of Script A (line 10) and replace it with your Google Chrome target location. To edit the script, delete the highlighted portion of the code (shown in screenshot) and replace it with your Google Chrome target location and then save your changes. 

    • An easy way to find your Google Chrome target location is to right-click on the Google Chrome shortcut icon on your desktop, navigate to “Properties”, click on the “Shortcuts” tab, and then copy the contents next to “Target”. 

    • Script B does not require any editing. 😊 

  3. To run a script, locate the scripts labeled with your name.  

  4. Run Script A first by right-clicking on it and selecting “Open” or by double clicking the file. Script A will search for the first term in our assigned terms list. To search for all subsequent terms, run Script B. 

  5. To stop the script while it is running, press Ctrl+x.

  6. To run Script B successfully, AutoHotKey will search for an active Chrome window titled "AutoHotKey". To ensure the script works properly, make sure the Chrome window opened by Script A is still open, active and on the first tab, which should display our list of terms in a spreadsheet named "AutoHotKey". Otherwise, Script B will fail to execute. 

  7. AutoHotKey will execute scripts in your currently active Google Chrome window. If you have more than one Chrome window open, ensure that you activate the Chrome window created by Script A before running Script B. 

    • What is an active window?  

    • “The window in front (foreground) of all other open windows, on a graphical user interface.” Read more here

PANA resources that cannot be automated:

Lemb Digit@l: This resource cannot be automated. Server for this resource is sensitive to multiple page refresh triggers, referred to as a “single-page application” (SPA). Automation using AutoHotKey requires multiple log-in requests, which will overwhelm the server. 

Biblioteca Nacional de España (BNE): This resource cannot be automated. Searching inside this resource directly does not yield results. Searches must be performed through https://fast.oclc.org/searchfast/.

Biblioteca Nacional de Argentina: This resource cannot be automated. Server is very sensitive and crashes frequently. 

University of Florida Home Page

This page uses Google Analytics - (Google Privacy Policy)

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.