Using MS Word Macro Recorder for AutoHotkey Scripts

Learn how to record macros in MS Word and convert them into AutoHotkey code with practical tips and adaptations. 📝

Using MS Word Macro Recorder for AutoHotkey Scripts
AUTOHOTKEY Gurus
1.6K views • Mar 6, 2022
Using MS Word Macro Recorder for AutoHotkey Scripts

About this video

Here I show how to use the MS word VBA macro recorder to build your AutoHotkey code and then adapt it to AutoHotkey needs.

TLDR: The video provides tips on how to save Word documents as PDFs with embedded hyperlinks, convert VBA code to AutoHotkey, and execute AutoHotkey scripts in Word.

1. 00:00 💻 Save Word documents as PDFs with embedded hyperlinks to prevent loss of links when converting.
1.1 Converting a Word document to PDF removes hyperlinks, so it's important to save the document in a certain way to embed them.

2. 00:32 📝 The speaker showed how to record a macro and add check marks to create a PDF with hyperlinks.
2.1 The speaker demonstrated how to record a macro to get code for a PDF and added check marks to enable options, resulting in a working PDF with hyperlinks.

3. 01:28 💻 Convert VBA code to AutoHotkey by studying Word's default values and variables.
3.1 Learn how to convert VBA code into AutoHotkey code by studying the default values and variables used in Microsoft Word.

4. 02:33 💻 Use variables and substitute "true" with "1" for compatibility when writing AutoHotkey code in VBA.
4.1 The speaker explains how to write AutoHotkey code in VBA and suggests using variables and substituting "true" with "1" for compatibility.

5. 03:33 📝 Focus on the essentials and skip the details: TLDR - Keep it concise!
5.1 The lecture notes include instructions on how to optimize for on-screen viewing and use the "quick info" feature with specific ranges and properties.

6. 04:46 VBA substitutes a number for a word when it sees it, and this concept is applied in AutoHotkey code with the use of a variable.

7. 05:45 💻 Use "if" statements and connect to the active document to execute AutoHotkey scripts in Word.
7.1 The speaker discussed using "if" statements to run specific sections of code and connecting to the active document in order to execute a script.
7.2 To use AutoHotkey with Word, you need to create a pointer to connect to the Word document and reference it for actions.

8. 07:12 📺 Launch a hyperlink and set a reminder for Friday live sessions, subscribe to the channel.
8.1 The speaker demonstrated how to launch a hyperlink and set a reminder for a live session on Fridays, and encouraged viewers to subscribe to their channel.

Tags and Topics

Browse our collection to discover more content in these categories.

Video Information

Views

1.6K

Likes

38

Duration

8:10

Published

Mar 6, 2022

User Reviews

4.5
(1)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.