Archive for the ‘Document Delivery Workflow’ Category

Sample AutoHotKey Scripts for Interlibrary Loan Workstations

April 14, 2010

1. Introduction

How many requests do you process a day in ILLiad? Unfortunately, being an ILL staff member means you perform repetitive actions day in and day out. Shaving a second or two off each request can equal a significant amount of time saved and notable improved efficiency.  That’s where AHK scripts come in. They allow you to create any keyboard or mouse shortcuts you want, for all or for particular programs. They perform common actions automatically, without your intervention. They perform text replacements: you type a short phrase, and entire sentences or paragraphs show up on the screen.  And they save you time.

The following is a selection of AutoHotKey (AHK) scripts designed specifically for Interlibrary Loan use. This is not a tutorial in using AHK. It assumes you’ve read the IDS Toolkit page on the subject and followed its advice (that is, learned more at the AHK website).

While these may work for you as is, they are primarily models for your own scripts. They all work beautifully on my computer (Windows XP), but these things often need to be tweaked to work with individual setups.  In fact, the recent upgrade to ILLiad 8.0.4 “broke” some of the following; they had to be modified—slowed down, actually—to deal with the new ILLiad’s newfound speediness.

Also: these are tailored to my preferences. I prefer to have my right hand on my mouse and my left resting near the top left hand side of my keyboard. Therefore, I’ve written scripts that focus on the mouse and the left side of the keyboard.  I also use the Windows Key like a second Ctrl key. If you don’t like the key or combination of keys that perform an action, change the script! The point is having a setup that is natural to you.

Even if you don’t use these examples, I hope it will show you the power of AHK, and encourage you to give it a try. I cannot recommend AHK enough.

Notes:

All ILLiad-specific actions are for ILLiad 8 only. Sorry! I deleted all my 7.4 scripts when I made the switch to 8. The printing shortcuts, though, are great for earlier versions of ILLiad, where manual merges are common.

You can ask questions via email, but I cannot troubleshoot complex problems, and I cannot guarantee a timely response—I’m a busy person! I would like to hear about problems, though, and suggestions for improved and new scripts are wanted. I am NOT a programmer, which means these scripts can probably be better than they currently are.

If there is interest, I can and will update this page with new custom scripts and improvements in the future.

2. Summary

Here is a list of scripts covered in this document. All are customizable.

Simple Scripts

These should work on your computer with little or no modification—but I guarantee nothing! Just copy any or all into your existing AutoHotKey script.

Key / Button Action performed For use with…
Middle Mouse Button Return to “home” tab from any other, refresh the page, and move the text cursor to the “number” field ILLiad, “Main” window
Middle Mouse Button Copy All programs
Double-click Right Mouse button Paste All programs
Windows Key  + V

Paste text inside of a pair of quotation marks, for database searches

All programs
Windows Key + G Opens a Google Scholar search, searches for the last title “copied,” in quotation marks Any internet browser
~ Crops Odyssey-scanned page ILLiad, Odyssey
F2 Turn Odyssey-scanned page left ILLiad, Odyssey
F3 Flip Odyssey-scanned page ILLiad, Odyssey
F4 Turn Odyssey-scanned page right ILLiad, Odyssey
F6 Checks in (Ctrl + i) or “Marks as Found” (Ctrl + f), depending on what you are doing ILLiad

Advanced

These scripts may require modest modification; use them if you have the knowhow.

Key / Button Action performed For use with…
[no action required] Illiad opens on computer startup, logs in with your username and password ILLiad
Middle Mouse Button When in the request window, will switch to the Z39.50 tab, search by System Number ILLiad, Request window
Right Mouse + Wheel Up When in the request window, will switch to the Z39.50 tab, search by Standard number ILLiad, Request window
Right Mouse + Wheel Down When in the request window, will switch to the Z39.50 tab, search by Title ILLiad, Request window
Windows Key + H Starts Odyssey Helper, logs in with your username and password Odyssey Helper
Windows Key + any letter Opens various network and local folders, web pages Windows OS, any web browser
ESC Closes the current window, or closes a tab when using Firefox All programs
PageUp Merges print document and prints Microsoft Word
PageDown Merges print document to a new document Microsoft Word
End Closes open merge document, does not save Microsoft Word
F1-F5 Steps through the process of requesting an item in borrowing

ILLiad, Request form, borrowing

3. Simple Scripts

ILLiad “Main”:

This first script 1.) Returns you to the “home” tab in ILLiad 8 (just as the F12 key does), 2.) refreshes your screen, and 3.) places your cursor in the “Number” search field… all when you click your middle mouse button (the wheel, usually).

This one is nice because, while it does all three things at once, you can use it to do ANY ONE OF THEM. For example, if you are already on the home tab and want to refresh, it simply refreshes. It does move your text cursor to the TN field, but it does not move your mouse pointer there (your mouse jumping around can be a real annoyance). Any one of the actions performing does not affect the other two.

#IfWinActive, ILLiad Client
MButton::
Send, {F12}
Sleep, 100
Send, {Alt}r
Sleep, 200
Send, {Alt}h
Sleep, 400
Send,srn
Return
#IfWinActive

This is by far the most useful shortcut I use. I would use AutoHotKey for this function alone.

***Note: This action only takes place when you are using ILLiad. It will not change the middle mouse button’s function in any other program.

Copy by clicking the middle mouse button.

;COPY w/MIDDLE MOUSE BUTTON
MButton::Send ^c

Obviously, if you use this script and the previous one, clicking the middle mouse button will perform both actions, which can create a conflict. I don’t find it to be a problem because: the first action only happens if you are in ILLiad and in the MAIN window. If I ever copy something in ILLiad, it is from the pop-up “Request” window, and not in the main window. Therefore, the two actions rarely “activate” at the same time. If you have a problem, you can change one or the other to activate with a different key.

This copy function (and the following “paste”) works in ALL programs, not just ILLiad. Very useful.

Paste by double-clicking the right mouse button.

Click twice fast and it pastes. Clicking once does whatever right-clicking would normally do.

;PASTE W/RIGHT MOUSE BUTTON (click x2)
~RButton::
If (A_PriorHotKey = A_ThisHotKey and A_TimeSincePriorHotkey < 1200) {
Sleep 100
Send, {ESC}
send ^v
}
else {
}
Return

I use a modified version of this that is best for pasting into form fields. When your cursor is in a field, it selects what’s already there first, and pastes over it.

;OVERWRITE AND PASTE W/RIGHT MOUSE BUTTON (click x2)
~RButton::
If (A_PriorHotKey = A_ThisHotKey and A_TimeSincePriorHotkey < 1200) {
Sleep 100
Send, {ESC}
Send, ^a
Sleep  100
Send, ^v
}
else {
}
Return

Paste in quotes:

While Ctrl + V pastes, this makes Windows Key + V a special paste: it pastes whatever you copied, inside of quotation marks.

;PASTE in Quotes
#v::send “%clipboard%”

This is good for performing searches for exact phrases, such as an article title (see “Google Scholar search” below).   Since the Windows Key is next to Ctrl, it is also natural finger placement.

Google Scholar search:

Ever use Google Scholar to look for articles? Hit Windows Key + g together and this opens Google Scholar in your browser of choice (has only been tested for Firefox though) and searches whatever you last copied to the clipboard. The phrase is also within quotation marks, for an exact result. Great for checking online availability before requesting from another library. Just don’t forget to copy the article title first! Update: Not as useful now that there is a Scholar “Add-on,” for ILLiad, but still worth having.

;GOOGLE SCHOLAR, SEARCH FOR CLIPBOARD ITEM
#g::
Run http://scholar.google.com/
Sleep 1000
Send “
Send ^v
Send “
Sleep 500
Send {Enter}
Return

Scanning:

When scanning in Odyssey, this script turns the very accessible “~ ” key into a cropping button.

Draw the box where you want to crop, click ~ to crop.

F2 turns the image to the left, while F4 turns it to the right. In between the two, F3 flips the page all the way over. (At our institution, F1 is the “scan” button, as set up in our Odyssey settings.)

;Scanning:
#IfWinActive, Scanning
`::Send {ALT}hc
F2::Send {ALT}hrtl
F3::Send {ALT}hrtfl
F4::Send {ALT}hrtri
#IfWinActive

Updating:

This sends Ctrl + I and Ctrl + F at the same time. What does that mean? Ctrl + I checks items in during various Illiad processes. Ctrl + F marks items as found in Lending (and elsewhere?).  This makes F6 the go-to button for easy updating. Clicking performs both actions, but “Check-in” and “Mark as Found” are never both an option during any given process (as far as I’ve discovered), so the action relevant to the context occurs.

Did that make any sense at all? Basically, you can check things in faster, often without having to touch a mouse.

Also, hitting one button is easier than a combination of buttons, almost always.

;Borrowing: “check in”
;Lending: “Mark Found”
#IfWinActive, ILLiad Client
F6::
Send,^i
Sleep, 500
Send, ^f
Return
#IfWinActive

If F1 is your Odyssey scan hotkey and you use the above scripts, you’ll notice that almost all your function keys are now ILLiad shortcuts. F1-F4 are scanning controls. F5 refreshes. F6 updates. F7-F9 switch to different tabs. F12 returns to “Main.” Use F10 and F11 as you please.

4. Advanced

Open ILLiad on Startup:

If you use ILLiad every day, why not have it start up when your computer starts? For that matter, why should you have to log in every time if you are using ILLiad on your personal machine?

Add the following to your ILL AutoHotKey script, and place that file in the startup folder of your computer (you’ll want to do that anyway, so your shortcuts are available from startup). When your computer starts, ILLiad will also start, and log you in. Just replace PASSWORD with your ILLiad password.

IfWinExist ILLiad Client
WinActivate
else {
Run C:ILLiad8ILLiadClient.exe
Sleep 1000
}
WinWait, Logon,                    ;remove these last lines if you…
Send, PASSWORD{enter}     ;want to log in yourself
WinWait, ILLiad Client

You can also quickly restart ILLiad by “Reloading” the script, which is as easy as right-clicking the AHK icon in your Windows Taskbar and selecting “Reload This Script”

You must check the “remember me” box on the Illiad login screen for this to work.

Speedy Z-searches in Lending:

In lending, quickly perform a Z39.50 search by clicking the middle mouse button. By default, this searches by Standard Number.  Rolling the mouse wheel up or down WHILE HOLDING DOWN THE RIGHT MOUSE BUTTON performs other searches—up should search by System number, down should search by title. Change the script to perform your favorite searches.

When in an open record (on the detail, history, OCLC, Z-Search, or other tabs), the script switches to the Z39.50 search tab and performs the selected search.


SetTitleMatchMode 2
#IfWinActive, Request
MButton::
Send, ^3
Sleep, 100
Send, {ALT}d
Sleep, 100
Send, ns{enter}
Return

~RButton & ~WheelUp::
Send, ^3
Sleep, 100
Send, {ALT}d
Sleep, 100
Send, ss{enter}
Return

~RButton & ~WheelDown::
Send, ^3
Sleep, 100
Send, {ALT}d
Sleep, 100
Send, ts{enter}
Return
#IfWinActive

Start Odyssey Helper:

Windows Key + H opens Odyssey helper and if you want it to, logs in for you. Replace USERNAME with your username, PASSWORD with your password… or delete that line of the script.

;ODYSSEY HELPER
#h::
IfWinExist Odyssey Helper Logon
WinActivate
else
Run illiadilliadodysseyOdysseyHelper.exe
WinWait, Odyssey Helper Logon
Send, USERNAME{TAB}PASSWORD{ENTER}
;delete previous line if you want to manually log in
Return

You may need to change the “target” on the Run line in the middle of this script. Right click on your shortcut for Odyssey Helper, click “Properties.” Whatever is in the “target” field should be listed after Run in this script.

Actually, by changing the target, you can modify this to open Customization Manager, the Staff Manager, or ILLiad itself.

Shortcuts to folders:

Shortcuts can open up network or local folders you need to use often. These examples work for me on our ILLiad install; simply change the “targets” (see previous example) to adapt it for you. These all are Windows Key + some letter combos.

;ILLIAD FOLDER, Windows Key + I
#i::Run Illiadilliad

;ILLIAD-PDF FOLDER, Windows Key + P
#p::Run Illiadilliad-pdf

;ELECTRONIC DOCUMENTS FOLDER (our target folder for Odyssey Helper), Windows Key + T
#t::Run IlliadilliadElectronic documents
The target can also be an address for the quick opening of a web page.
;IDS Toolkit wiki, Windows Key + K
#k::Run http://toolkit.idsproject.org/

Use ESCAPE key to close the active window:

I created this for use with ILLiad when I grew tired of closing out all the windows it pops up, one over the other. A single click of ESC closes whatever window is active at the time. (Double-clicking ESC performs whatever actions ESC would normally perform, so you don’t lose functionality.)

If you are using Internet Explorer (not my browser of choice, but ILLiad’s, and the most common), it will close the tab you are using, not the entire program. It is VERY handy for clearing old tabs! If you don’t use IE, you will have to change the script to work with your browser. (Change “IEFrame” to “MozillaUIWindowClass” for Firefox.) If you don’t change anything, ESC will still close windows just fine.

;CLOSE ANY WINDOW (doubleclick to “esc”)
#IfWinActive, ahk_class IEFrame
ESC::Send, ^w    ;closes tab in IE
Return
#IfWinActive
~ESC::
If (A_PriorHotKey = A_ThisHotKey and A_TimeSincePriorHotkey < 1000)
send {ESC}
else
send !{F4}
Return
#IfWinActive

Template merging/printing shortcuts:

Create shortcuts for merging and printing with Word. These are especially handy if you are using ILLiad 7.4 or lower and still need to merge/print manually.

Here, three relatively worthless buttons are made useful. After “printing” in ILLiad, when looking at an unmerged Word document:

PageUp button merges, then prints the document.

PageDown button merges to a new document, showing the merged result, does not print.

End closes either of the above. When Word asks if you want to save changes, no is automatically selected.

Each of these saves several clicks every time you print.

;MERGE AND PRINT/NEW DOC, “End” to Close
~PgUp::
IfWinActive, ahk_class OpusApp
Send, +!m
Sleep 500
Send, {enter}
Sleep 100
Send, {enter}
Return
~PgDn::
IfWinActive, ahk_class OpusApp
Send, +!n
Sleep 500
Send, {enter}
Return
~End::
IfWinActive, ahk_class OpusApp
Send, !{F4}
Sleep, 200
Send, {Right}{enter}
Return
#IfWinActive

Works in Word 2007. I don’t know about other versions.

Borrowing Processing:

I saved the most difficult to set up for last!

Process incoming borrowing requests for your patrons without having to click the mouse! (Well, not always click-free—keep reading.) Step through the borrowing process with the function keys.

Open the request record.

F1 Selects the OCLC tab -> Searching tab. You should already have search results waiting for you. Make sure the correct result is highlighted, or select the correct one.

F2 moves you to the Record Detail. Make sure you have the right record.

F3 moves to the Holdings tab, searches default holdings. Either a lending string was automatically made or you have to create your own.

F4 creates a work form, moves to Work Form tab.

F5 will “Send Request,” then “Request Sent.”

Sometimes, you go through the whole process in seconds and never click your mouse. Other times additional searches must be done manually, lenders need to be selected,  the Max Cost must be changed, etc.

;BORROWING, specific to open record
SetTitleMatchMode 2
#IfWinActive, Request
F1::
Send, ^o
Click 40,210
Return
F2::Click 118,210
F3::
Send, ^o
Send ^h
Return
F4::Send, ^w
F5::
Send, ^r
Sleep 1000
Send, ^f
Return
#IfWinActive

Problems:

1.) Notice the “Click” lines. The numbers after are x and y coordinates of where you would normally click on the screen. If your “Quick Access Toolbar” is below the Ribbon interface, the coordinates are correct. If it is above the Ribbon, change the “210”s to “180” or so.

2.) Using F1-F5 for borrowing as shown here may–but shouldn’t–create conflicts if you are using the aforementioned scanning shortcuts for the same keys!  There are ways around the conflicts, but that is too complicated to discuss here.

Simple Scripts

ILLiad “Main”:

This one: 1.) Returns you to the “home” tab in ILLiad 8 (just as the F12 key does), 2.) refreshes your screen, and 3.) places your cursor in the “Number” search field… all when you click your middle mouse button (the wheel, usually).

This one is nice because, while it does all three things at once, you can use it to do ANY ONE OF THEM. For example, if you are already on the home tab and want to refresh, it simply refreshes. It does move your text cursor to the TN field, but it does not move your mouse pointer there (your mouse jumping around can be a real annoyance). Any one of the actions performing does not affect the other two.

#IfWinActive, ILLiad Client

MButton::

Send, {F12}

Sleep, 100

Send, {Alt}r

Sleep, 200

Send, {Alt}h

Sleep, 400

Send,srn

Return

This is by far the most useful shortcut I use. I would use AutoHotKey for this function alone.

***Note: This action only takes place when you are using ILLiad. It will not change the middle mouse button’s function in any other program.

Copy by clicking the middle mouse button.

;COPY w/MIDDLE MOUSE BUTTON

MButton::Send ^c

Obviously, if you use this script and the previous one, clicking the middle mouse button will perform both actions, which can create a conflict. I don’t find it to be a problem because: the first action only happens if you are in ILLiad and in the MAIN window. If I ever copy something in ILLiad, it is from the pop-up “Request” window, and not in the main window. Therefore, the two actions rarely “activate” at the same time. If you have a problem, you can change one or the other to activate with a different key.

This copy function (and the following “paste”) works in ALL programs, not just ILLiad. Very useful.

Paste by double-clicking the right mouse button.

Click twice fast and it pastes. Clicking once does whatever right-clicking would normally do.

;PASTE W/RIGHT MOUSE BUTTON (click x2)

~RButton::

If (A_PriorHotKey = A_ThisHotKey and A_TimeSincePriorHotkey < 1200) {

Sleep 100

Send, {ESC}

send ^v

}

else {

}

Return

I use a modified version of this that is best for pasting into form fields. When your cursor is in a field, it selects what’s already there first, and pastes over it.

;OVERWRITE AND PASTE W/RIGHT MOUSE BUTTON (click x2)

~RButton::

If (A_PriorHotKey = A_ThisHotKey and A_TimeSincePriorHotkey < 1200) {

Sleep 100

Send, {ESC}

Send, ^a

Sleep  100

Send, ^v

}

else {

}

Return

Paste in quotes:

While Ctrl + V pastes, this makes Windows Key + V a special paste: it pastes whatever you copied, inside of quotation marks.

;PASTE in Quotes

#v::send “%clipboard%”

This is good for performing searches for exact phrases, such as an article title (see “Google Scholar search” below).         Since the Windows Key is next to Ctrl, it is also natural finger placement.

Google Scholar search:

Ever use Google Scholar to look for articles? Hit Windows Key + g together and this opens Google Scholar in your browser of choice (has only been tested for Firefox though) and searches whatever you last copied to the clipboard. The phrase is also within quotation marks, for an exact result. Great for checking online availability before requesting from another library. Just don’t forget to copy the article title first! Update: Not as useful now that there is a Scholar “Add-on,” for ILLiad, but still worth having.

;GOOGLE SCHOLAR, SEARCH FOR CLIPBOARD ITEM

#g::

Run http://scholar.google.com/

Sleep 1000

Send “

Send ^v

Send “

Sleep 500

Send {Enter}

Return

Scanning

When scanning in Odyssey, this script turns the very accessible “~ ” key into a cropping button.

Draw the box where you want to crop, click ~ to crop.

F2 turns the image to the left, while F4 turns it to the right. In between the two, F3 flips the page all the way over. (At our institution, F1 is the “scan” button, as set up in our Odyssey settings.)

;Scanning:

#IfWinActive, Scanning

`::Send {ALT}hc

F2::Send {ALT}hrtl

F3::Send {ALT}hrtfl

F4::Send {ALT}hrtri

Updating

This sends Ctrl + I and Ctrl + F at the same time. What does that mean? Ctrl + I checks items in during various Illiad processes. Ctrl + F marks items as found in Lending (and elsewhere?).  This makes F6 the go-to button for easy updating. Clicking performs both actions, but “Check-in” and “Mark as Found” are never both an option during any given process (as far as I’ve discovered), so the action relevant to the context occurs.

Did that make any sense at all? Basically, you can check things in faster, often without having to touch a mouse.

Also, hitting one button is easier than a combination of buttons, almost always.

;Borrowing: “check in”

;Lending: “Mark Found”

#IfWinActive, ILLiad Client

F6::

Send,^i

Sleep, 500

Send, ^f

Return

If F1 is your Odyssey scan hotkey and you use the above scripts, you’ll notice that almost all your function keys are now ILLiad shortcuts. F1-F4 are scanning controls. F5 refreshes. F6 updates. F7-F9 switch to different tabs. F12 returns to “Main.” Use F10 and F11 as you please.

_____­­­­­­­­­­­­­­­­­­­________________________________________________________________________________

Open ILLiad on Startup:

If you use ILLiad every day, why not have it start up when your computer starts? For that matter, why should you have to log in every time if you are using ILLiad on your personal machine?

Add the following to your ILL AutoHotKey script, and place that file in the startup folder of your computer (you’ll want to do that anyway, so your shortcuts are available from startup). When your computer starts, ILLiad will also start, and log you in. Just replace PASSWORD with your ILLiad password.

IfWinExist ILLiad Client

WinActivate

else {

Run C:ILLiad8ILLiadClient.exe

Sleep 1000

}

WinWait, Logon,                    ;remove these last lines if you…

Send, PASSWORD{enter}     ;want to log in yourself

WinWait, ILLiad Client 8.0.2.0

You can also quickly restart ILLiad by “Reloading” the script, which is as easy as right-clicking the AHK icon in your Windows Taskbar and selecting “Reload This Script”

You must check the “remember me” box on the Illiad login screen for this to work.

Speedy Z-searches in Lending:

In lending, quickly perform a z-search by clicking the middle mouse button. By default, this searches by Standard Number.  Rolling the mouse wheel up or down WHILE HOLDING DOWN THE RIGHT MOUSE BUTTON performs other searches—up  should search by System number, down should search by title. Change the script to perform your favorite searches.

When in an open record (on the detail, history, OCLC, Z-Search, or other tabs), the script switches to the Z-search tab and performs the selected search.

#IfWinActive, ahk_class WindowsForms10.Window.8.app.0.afceb

MButton::

Send, ^3

Sleep, 100

Send, {ALT}d

Sleep, 100

Send, ns{enter}

Return

~RButton & ~WheelUp::

Send, ^3

Sleep, 100

Send, {ALT}d

Sleep, 100

Send, ss{enter}

Return

~RButton & ~WheelDown::

Send, ^3

Sleep, 100

Send, {ALT}d

Sleep, 100

Send, ts{enter}

Return

The caveat here: the above works because the actions perform when the Record window—called “WindowsForms10.Window.8.app.0.afceb”—is open. When Atlas decides to change this name, as they seem to with upgrades, the above script will be broken until you change the window name in the script.

Start Odyssey Helper:

Windows Key + H opens Odyssey helper and if you want it to, logs in for you. Replace USERNAME with your username, PASSWORD with your password… or delete that line of the script.

;ODYSSEY HELPER

#h::

IfWinExist Odyssey Helper Logon

WinActivate

else

Run illiadilliadodysseyOdysseyHelper.exe

WinWait, Odyssey Helper Logon

Send, USERNAME{TAB}PASSWORD{ENTER} ;delete this line if you want to manually log in

return

You may need to change the “target” on the Run line in the middle of this script. Right click on your shortcut for Odyssey Helper, click “Properties.” Whatever is in the “target” field should be listed after Run in this script.

Actually, by changing the target, you can modify this to open Customization Manager, the Staff Manager, or ILLiad itself.

Shortcuts to folders:

Shortcuts can open up network or local folders you need to use often. These examples work for me on our ILLiad install; simply change the “targets” (see previous example) to adapt it for you. These all are Windows Key + some letter combos.

;ILLIAD FOLDER, Windows Key + I

#i::Run Illiadilliad

;ILLIAD-PDF FOLDER, Windows Key + P

#p::Run Illiadilliad-pdf

;ELECTRONIC DOCUMENTS FOLDER (our target folder for Odyssey Helper), Windows Key + T

#t::Run IlliadilliadElectronic documents

The target can also be an address for the quick opening of a web page.

;IDS Toolkit wiki, Windows Key + K

#k::Run http://toolkit.idsproject.org/

Use ESCAPE key to close the active window.

I created this for use with ILLiad when I grew tired of closing out all the windows it pops up, one over the other. A single click of ESC closes whatever window is active at the time. (Double-clicking ESC performs whatever actions ESC would normally perform, so you don’t lose functionality.)

If you are using FireFox (my browser of choice), it will close the tab you are using, not the entire program. It is VERY handy for clearing old tabs! If you don’t use Firefox, you will have to change the script to work with your browser. If you don’t change anything, ESC will still close windows just fine.

;CLOSE ANY WINDOW (doubleclick to “esc”)

#IfWinActive, ahk_class MozillaUIWindowClass

ESC::Send, ^w    ;closes tab in Firefox

Return

#IfWinActive

~ESC::

If (A_PriorHotKey = A_ThisHotKey and A_TimeSincePriorHotkey < 1000)

send {ESC}

else

send !{F4}

Return

Template merging/printing shortcuts:

Create shortcuts for merging and printing with Word. These are especially handy if you are using ILLiad 7.4 or lower and still need to merge/print manually.

Here, three relatively worthless buttons are made useful. After “printing” in ILLiad, when looking at an unmerged Word document:

PageUp button merges, then prints the document.

PageDown button merges to a new document, showing the merged result, does not print.

End closes either of the above. When Word asks if you want to save changes, no is automatically selected.

Each of these saves several clicks every time you print.

;MERGE AND PRINT/NEW DOC, “End” to Close

~PgUp::

IfWinActive, ahk_class OpusApp

Send, +!m

Sleep 500

Send, {enter}

Sleep 100

Send, {enter}

Return

~PgDn::

IfWinActive, ahk_class OpusApp

Send, +!n

Sleep 500

Send, {enter}

Return

~End::

IfWinActive, ahk_class OpusApp

Send, !{F4}

Sleep, 200

Send, {Right}{enter}

Return

Works in Word 2007. I don’t know about other versions.

Borrowing Processing

I saved the most difficult to set up for last!

Process incoming borrowing requests for your patrons without having to click the mouse! (Well, not always click-free—keep reading.) Step through the borrowing process with the function keys.

Open the request record.

F1 Selects the OCLC tab -> Searching tab. You should already have search results waiting for you. Make sure the correct result is highlighted, or select the correct one.

F2 moves you to the Record Detail. Make sure you have the right record.

F3 moves to the Holdings tab, searches default holdings. Either a lending string was automatically made or you have to create your own.

F4 creates a work form, moves to Work Form tab.

F5 will “Send Request,” then “Request Sent.”

Sometimes, you go through the whole process in seconds and never click your mouse. Other times additional searches must be done manually, lenders need to be selected,  the Max Cost must be changed, etc.

;BORROWING, specific to open record

#IfWinActive, ahk_class WindowsForms10.Window.8.app.0.afceb

F1::

Send, ^o

Click 40,210

Return

F2::Click 118,210

F3::

Send, ^o

Send ^h

Return

F4::Send, ^w

F5::

Send, ^r

Sleep 1000

Send, ^f

Return

Problems:

1.) Notice the “Click” lines. The numbers after are x and y coordinates of where you would normally click on the screen. If your “Quick Access Toolbar” is below the Ribbon interface, the coordinates are correct. If it is above the Ribbon, change the “210”s to “180” or so.

2.) Using F1-F5 for borrowing as shown here may create conflicts if you are using the aforementioned scanning shortcuts for the same keys!  There are ways around the conflicts, but that is too complicated to discuss here.


Follow

Get every new post delivered to your Inbox.

Join 52 other followers