The AutoHotkey documentation is top-notch however many editors don’t allow you to easily pull it up! AHKHelp allows you to easily access AutoHotkey documentation and video tutorials! In this one tool we leverage the online AutoHotkey documentation as well as search YouTube for the AutoHotkey topic you’ve selected! This will greatly improve your AutoHotkey experience!
Tag: AHK Studio
87 Amazing Built-in Hotkeys for AHK Studio | Be more productive with AutoHotkey studio TODAY!
AHK Studio is an amazing editor for AutoHotkey! I’ve made over 40 tutorials documenting how to level-up your programming by using it. Unfortunately, for many, it has a bit of a learning curve. I created a couple of printable files which will help you memorize the 87 built-in hotkeys for AHK Studio
Here is a video where you discussing some of the amazing built-in hotkeys (you can adjust them to your desire)
If you provide your email address, you can download the files mentioned in the video here
Walk through of 87 Built-in Hotkeys for AHK Studio
AutoHotkey Webinar- Intro to AutoHotkey
In this webinar we cover an Intro to AutoHotkey.
Video Hour 1: High-level overview: Hour 1
Video Hour 2: Q&A: Hour 2
Script Highlight: Minimize to tray– This is an “old” AutoHotkey script but is super-cool! When running you simply press the Windows Key & H and the active program will “disappear”. It works on multiple windows. Then, when you want them back, press Windows & U and the windows will be visible again.
Intro to AutoHotkey
- AutoHotkey is free, open-source, Windows scripting language
- Created in 2003 from Chris Mallet it was an off-shoot of AutoIt
- AHK is user-friendly for non-programmers but is also used by programmers as it “hooks” into Windows & windows programs very well
- The core language is very descriptive and typically isn’t too hard to grasp
- Scripts are easily “compiled” into an executable which can be easily shared
- You do not need to install AutoHotkey to run it. (It can be run from a thumb-drive)
What can AutoHotkey do?
You can automate virtually anything on a Windows computer! Here are some uses:
- HotStrings: think text expansion on your phone or spell-check in MS Word
- HotKeys: Launch programs with a click of a button
- Files & Folders: Manipulate, read, move, delete etc.
- Automate programs : Outlook, Word, Excel, SPSS, VLC, Adobe, etc.
- Connect to Windows API: Programmatically affect Windows & other programs
- Web Scrape: Reliably download data from webpages &/or manipulate /complete forms
- Web Service APIs: Many vendors allow you to query their services
- Create GUIs: Simplify interacting with scripts by creating a GUI to manipulate
- Regular Expressions: use pattern matching on text files to extract or re-arrange the text
- Audio & Image Manipulation: Screen clipping, OCR, extract audio, Video recording, etc.
- So much more!!!
AutoHotkey Resources
- AutoHotkey Help file (press F1 in most AHK Editors) and Website
- AutoHotkey Forum– Amazing resources with a ton of examples & helpful people
- StackOverflow– Lots of great examples here
- Reddit– Some examples and people that will help explain solutions
- Discord– Interact live with people
- Personal sites: the-Automator.com, jszapp.com, ComputerEdge
- YouTube: Joe Glines, CivReborn, ahk Tuts, aboutscript
- Jackie & Joe’s HotStrings Udemy course
Installation of AutoHotkey
Go here and download the current version of AutoHotkey https://www.autohotkey.com/download/
During installation, we recommend installing the Unicode 32-bit version of AutoHotkey
Installing a Default AutoHotkey Editor
AutoHotkey code is “plain text” and pretty easy to read
Having said that, using an editor / IDE, instead of notepad, is very helpful!
Below are links to the three most popular AHK editors. Are all equally good as are many others). For our demonstration we are going to use SciTE (pronounced ‘sight’)
- SciTE4AutoHotkey is a great editor for AutoHotkey. Here are a bunch of videos demonstrating how to Customize SciTE
- AutoHotkey Studio Great editor specific to AutoHotkey. Check out the demo in this webinar
- Notepad ++ Another great editor which is customized for working with AutoHotkey
Before Your First AutoHotkey Script
Before we start coding, here are some basics which will help you
- #SingleInstance, Force: Put in all scripts. This Forces 1 instance of the script
- The Green icon with white H in system tray shows you the script is running
- Every time you make changes to your script, you need to Reload / Launch it for the changes to take affect
- Frequent Modifier keys (for HotKeys) are: ^=Control #=Windows +=Shift !=Alt
- Frequent Special Characters (for HotStrings) are:#,!,+,; Wrap them with {}
- For a New Line, use `n, for a tab use `t
Your First AutoHotkey Script
Hotkey
Copy & Paste to Excel
Troubleshooting & Debugging
- Watch our AutoHotkey webinar on Troubleshooting & Debugging (or join a future webinar and ask questions in the second hour)
- Work through our HotStrings Udemy course
- Is script running / Green icon with white H in system tray
- If Green H Icon, Restart script
- Double-click icon & look at: last lines run, Variables & their contents, Hotkeys & their methods, Key history
- Close all other scripts & programs & retry
- If still not working, start using msgbox to “walk through” the script
- Try using ListVars & ListLines
- Read documentation on specific command/function you’re having issue on. Search forum/StackOverflow for examples
- Try running your script as Admin
- Temporarily turn-off UAC (User Account Control)
- Is your issue after the Auto-Execute Section?
- If Context-sensitive, remove context sensitivity & run general
- Reboot the computer (hey, it’s Windows…)
- Search the AutoHotkey Forum, Stack Overflow for similar issues
- Is the problem consistent & repeatable?
- Does it happen on other computers?
- What, specifically, isn’t working? Break down the part that isn’t working into it’s-own script. Provide specific example to AHK Forum, StackOverflow, or friend after spending at least 30 minutes on it yourself. You can also check Discord for live feedback/support.
- For SciTE debugging, you can check out videos on this post
AutoHotkey Webinar: 8/30/2016
AutoHotkey Webinar Videos and Links
- Link to the video of the First Hour
- Link to the video of the Second Hour (mostly Chat and a little Q&A)
- AutoHotkey User Survey
Link to AutoHotkey Webinar resources:
- Jackie Sztuk: Admin@jszapp.com jszapp.com Connect on LinkedIn YouTube videos Resources
- Joe Glines: Joe@the-Automator.com the-Automator.com Connect on LinkedIn YouTube videos Resources
- AHK Studio maestrith@gmail.com
- SciTE4AHK Joe’s posts configuring SciTE
- Notepad++ for AutoHotkey
- AutoHotkey forum (Amazing forum for getting help and searching for past solutions)
- Stack overflow (great repository of past questions)
- Reddit (Ask questions and scan past posts)
- IRC (Live chat with other AutoHotkey users)
- Facebook (Connect with others like you)
- LinkedIn (Connect with others like you)
- AutoHotkey on GitHub (source code)
Additional resources mentioned in AutoHotkey Webinar
- Jethrow’s Forum post on Web Scraping (very helpful resource for learning basics on COM)
- Micker’s forum post on Web Scraping (another great intro post)
- Joe’s tutorials on Web Scraping (Videos walking through intro to Web Scraping)
- Jackie’s “log into any website” post (Nice walk-through how to manipulate a web page)
- Pulover’s Macro Creator (Helpful for noobs but beware of all additional code added to your scripts)
- http://aviaryan.in/ahk/
- CSV Buddy (great CSV library for ahk)
- ComputorEdge / Jack’s AutoHotkey Blog (Good source for learning basics for non-techie people)
- Camerb on Github
- AHK-just-me / Class_SQLiteDB
- Maul Esel on Github
- ChunJee AutoHotkey YouTube videos
- AHKTuts /RaptorX AutoHotkey YouTube videos
- Aboutscript / Frankie YouTube videos
- Lintalist YouTube demo videos (very cool program that you can adapt and provide to non-techie people)
Here is a link where you can register for upcoming AutoHotkey webinars