Reading All Short Keys in File

Get help with using AutoHotkey and its commands and hotkeys
abx
Posts: 5
Joined: 22 Jun 2016, 04:25

Reading All Short Keys in File

13 Jul 2018, 08:15

I was wondering if there was some sort of way to return all the shortcuts from an AHK macro file?

I have an AHK file which is full of shortcuts and I am always adding to it.

They are either in the format of Alt + Something or plain text replacement (usually along the lines of ASTERISK + email = replaced with "full.email.address@example.com")

I was trying to think of ways to do this and thought of 2 options:

1: (a long shot) A way to read all the shortcut keys (maybe built in) and return them in msgbox, or in a variable for use elsewhere
2: (more likely) Apply a particular comment text (maybe duplicate semi colons) above each shortcut that can be looped through and read

EG:
;;Alt + P = Send printer path
send, \\printerpathexample\example\example1printer
return

Are either of these options possible? Maybe by using FILEREADLINE and some sort of loop?
User avatar
TheDewd
Posts: 1035
Joined: 19 Dec 2013, 11:16
Location: USA

Re: Reading All Short Keys in File

13 Jul 2018, 08:56

You can double-click the AutoHotkey tray icon, and then after the window opens press Ctrl + H or just click menu View > Hotkeys and their methods.

Also, courtesy of Lexikos:
https://autohotkey.com/boards/viewtopic.php?f=6&t=9656

Code: [Select all] [Expand] [Download] (Untitled.ahk)GeSHi © Codebox Plus

Image Bulldozer - Sokoban inspired game from 1994 recreated in AutoHotkey.

Return to “Ask For Help”

Who is online

Users browsing this forum: shgilad81 and 82 guests