Copy Bible Verses Macro for Windows

Pieter J.
Pieter J. Member Posts: 533
edited November 20 in English Forum

Idea0525.CopyBibleVerses.zip

This solves the problem of quickly replacing a Bible Reference with the verse(s) within almost any application.

  1. This script make use of AutoHotKey, LogosComApi and Internet Explorer
  2. Open the Script file and Edit line 16 to your preferred language
  3. Run the script
  4. Select a Reference that is replacable in any Application:
    1. Win + B : will replace the selected Reference with Bible Text
    2. To set the style Press Ctrl+Alt+B and set the Preffered style in the Copy Bible Verses dialog. Then close it. Retry 3.1 to see the result
  5. If Bible text or a paragraph contains to many line-feeds, select it:
    1. Ctrl + R  : will remove the line-feeds from selected text and combine it into one paragraph.
  6. If you have text in a foreign language and want to translate it to your own default language, select it:
    1. Ctrl + T  : will translate the selected text to your preferred language
  7. Customize the hotkeys in the Define Hotkeys section lines 19-21
22

Comments

  • Doc B
    Doc B Member Posts: 3,581 ✭✭✭

    Would love to see a short video clip of this in action.

    Eating a steady diet of government cheese, and living in a van down by the river.

  • Brother Mark
    Brother Mark Member Posts: 945 ✭✭

    Beautiful and elegant!  Thanks!!!

    "I read dead people..."

  • Pieter J.
    Pieter J. Member Posts: 533

    Bugs fixed:

    1. I removed the SingleInstance directive and force my own Instance through code. This does not prevent the script to have more than one instance running, it only ensures one instance if the script starts itself.
    2. ClipWait breaks Win + B on the third time I restart Logos, so I removed all code for ClipWait. I placed it on line 56.
    3. The script now completely restarts itself (on Win + B) when Logos is not running to ensure that all variables are released and reloaded. This cause the script to start Logos automatically if not running and Win + B is pressed.
    4. If the script is running and Logos get closed, there is a time-frame in which the script thinks that Logos is still open. This will be visible when Win + B fails to replace a reference in this time-frame. Just wait a few seconds and try Win + B again - the script will then start Logos and replace the reference and function normally.

    [I] 6562.CopyBibleVerses.zip

    88
  • Ivan Liew
    Ivan Liew Member Posts: 3 ✭✭

    I tried the CopyBibleVerses and it worked, but not reliably and consistently for me. I often had to restart the script and when I changed styles in the Logos "Copy Bible Verses" window it would sometimes work and sometimes not. Further, I was using AutoHotKeys only for this.

    I am now using the Smart Tags feature - which I am surprised has been around a long time as an undocumented feature for Office. I have commented on this here: https://community.logos.com/forums/t/5374.aspx?PageIndex=2  Note that this only works for Office, whereas CopyBibleVerses works for any app.