AHK’s how to remember all your commands and scripts AHKCommandPicker & other great scripts I’ve foun

3 min read 7 hours ago
Published on Jan 20, 2025 This response is partially generated with the help of AI. It may contain inaccuracies.

Table of Contents

Introduction

This tutorial aims to help you effectively remember and organize your AutoHotkey (AHK) commands and scripts. By utilizing tools like AHK Command Picker and other helpful scripts, you can streamline your workflow and maintain productivity in your projects.

Step 1: Create a Help Message Box

To start, you can create a simple help message box that displays your hotkeys and their descriptions. This will serve as a quick reference guide.

  1. Open your AHK script editor.
  2. Insert the following code to define your hotkeys and display a message box:
^8::    
{
    txIntro =       
    (
        ++++++++++++++++ HotKeys ++++++++++++++
        ctrl+alt+q        _NADA at present
        Shift+alt+x       _Full sig with html page
        Ctrl+6            _ExitApp
        Ctrl+7            _Reload
        ++++++ Linked +++++++
        Alt+1             _Link-Be in Text area Put a new URL in box (OK) Put a Word/String for what you want to read
    )
    MsgBox %txIntro%
    Return
}
  1. Save and run your script. Press Ctrl + 8 to see the message box with your hotkeys.

Practical Tip

Regularly update your help message box with new scripts as you discover them to keep your reference current.

Step 2: Implement a GUI for Script Selection

To enhance usability, consider creating a GUI that allows you to select script snippets easily.

  1. Keep your original hotkey script intact.
  2. Add a GUI function to your script that lists available commands and allows for selection.

Here's a basic structure for your GUI:

Gui, Add, ListBox, vMyListBox
Gui, Add, Button, gSelectScript, Select
Gui, Show,, Script Selector
return

SelectScript:
Gui, Submit, NoHide
; Add code to execute selected script
return

GuiClose:
ExitApp
  1. Customize the GUI to include your most useful scripts.

Step 3: Use AHK Command Picker

To manage your scripts efficiently, utilize the AHK Command Picker developed by Daniel Schroeder. This tool allows for easy access and organization of your AHK functions.

  1. Download AHK Command Picker from GitHub.
  2. Follow the installation instructions provided in the repository.
  3. Familiarize yourself with the interface and start adding your scripts.

Common Pitfall

Ensure you keep your scripts organized within the Command Picker to avoid confusion when selecting commands.

Step 4: Explore Additional Scripts

Take advantage of other helpful scripts and resources shared by the community.

  1. Check out CivReborn's YouTube channel for AHK tutorials and scripts.
  2. Use the RecordTime GUI by Joy for time tracking or data entry tasks. Download it from GitHub.
  3. Explore the TapHoldManager scripts by evilC for enhanced functionality.

Conclusion

By following these steps, you can create a robust system for remembering and organizing your AHK commands and scripts. Regularly update your help message box, utilize a GUI for easy access, and explore community resources to enhance your productivity. As you continue to experiment with AHK, you'll find new ways to streamline your workflow and make your projects more efficient. Happy scripting!