Tips for Smoothing Out AutoHotkey Scripts with #If, Tooltip, and Quick Release Hotkeys (Beginning Hotkeys Part 19)

Enhancing the MousePrecise.ahk AutoHotkey Script with the #If Directive, the Tooltip Command, and a Quick Release Hotkey

Continue reading

AutoHotkey Solutions for Windows Clipboard Limitations (AutoHotkey Clipboard Tips)

Sometimes It’s Just Easier To Set Up a Temporary Hotkey for Inserting Text in Documents, Web Pages, or Forms, Plus a Quick Reminder of a Couple of Cool Clipboard-like AutoHotkey Apps (ClipJump and PhraseOMatic)

Continue reading

AutoHotkey Script for Precision Hotkey Mouse Movement in Windows Graphics Programs (Beginning Hotkeys Part 15)

This Short AutoHotkey App Adds Pixel Level Precision to Mouse Cursor Movement in Any Windows Graphics Program. Plus, Best Practices When Creating Hotkeys and More.

From time to time I use various Windows graphics programs. I regularly open Irfanview as my default image reader and occasionally use the built-in Windows Snipping Tool for screen capture. But my favorite graphics program is the free Paint.Net image and photo editing software for PCs. I usually design Web ads and cleanup embedded images with Paint.Net. However, there is one annoying factor when working with virtually any graphics software. Using a mouse for selection and alignment tends to be inaccurate and sloppy. It’s very difficult to move the mouse cursor with pixel level exactness—at least not without massively magnifying the image size.

Continue reading

AutoHotkey Scan Codes, Speech, Sound, and Splash Images in Children’s Apps (Beginning Hotkeys Part 13)

Write Toddler Educational Hotkey Scripts by Combining AutoHotkey Scan Codes, the SoundPlay Command, the SplashImage Command, and ComObjectCreate() for Speech

I started digging deeper into the weeds of identifying and using AutoHotkey Scan Codes and Virtual Key Codes (introduced last time), when I decided to take a diversion into a little fun, but practical approach to using Scan Codes for educational programs. Sink your AutoHotkey scripting teeth into this educational example. It covers a simple approach for teaching little ones keyboard numbers and letters by combining Hotkey techniques from earlier blogs, plus speech, sound, and SplashImages from chapters in the AutoHotkey Applications book.

Continue reading

Windows Volume Control Using Your Mouse Wheel and the AutoHotkey #If Directive (Beginning Hotkeys Part 6)

The AutoHotkey #If Expression Directive and Hotkey, If (Expression) Command Make Hotkeys Expression-Sensitive, Plus a Simple No-Click Volume Control Script

Volume Control
The mouse wheel controls volume while hovering the cursor over the Taskbar in Windows. (This is a Windows 10 example).

The AutoHotkey documentation for the #If expression directive includes a short script at the bottom of the page which is perfect for demonstrating how to use the Hotkey, If (Expression) command and its interdependence on the #If expression directive. It’s a cool little app because it reduces Windows volume control to simply scrolling the mouse wheel up or down while hovering the mouse cursor over the Windows taskbar—no click required!

*         *          *

This beginning Hotkey blog builds upon the discussions in the previous parts. If you find any of the information too confusing, then reviewing earlier blogs may be worthwhile.

New to AutoHotkey? See “Introduction to AutoHotkey: A Review and Guide for Beginners.”

*          *          * Continue reading

Exploring the Hotkey Command in AutoHotkey (Beginning Hotkeys Part 5)

The Hotkey Command Adds Immense Flexibility to AutoHotkey Scripts, But You Should Know How and When to Use It!

As I review the Hotkey command for my upcoming explorations, I note that it offers many capabilities which add flexibility and power to Hotkeys (and in some cases to Hotstrings). The advantage to the Hotkey instruction is that unlike the basic double-colon Hotkey definition (!#^h::command) which gets defined in the first phase of AutoHotkey file processing, it can run at any later time—either while loading in the auto-execute section or after the file loads in any subroutine or function.

Continue reading

AutoHotkey GroupAdd Command Reduces Script Code (Beginning Hotkeys Part 4)

AutoHotkey’s GroupAdd Command and Ahk_Group Create Multiple Context-Sensitive Hotkeys While Streamlining Code—Plus a Quick GroupAdd Script for Easy Window Handling!

Unlike AutoHotkey Hotstrings, there are numerous ways to manipulate Hotkeys—both while the script is loading (as in #Directives, discussed last time) or with various commands after the script is up and running. The most flexible of the interactive instructions is the Hotkey command which allows changes on the fly. The Hotkey command deserves much more attention (and will get it starting next time), but for now there are a couple more tricks demonstrating ways to make better use of the #IfWinActive directive in our example for blocking dangerous Windows shortcuts.

Continue reading

AutoHotkey #Directives for Context-Sensitive Hotkeys—#IfWinActive (Beginning Hotkeys Part 3)

Clearing Up the Confusion about AutoHotkey’s IfWinActive Command Versus the #IfWinActive Directive

Using regular AutoHotkey commands versus AutoHotkey #Directives is a major source of confusion for novice script writers. I know this because when I first picked up AutoHotkey a number of years ago I encountered the same befuddlement. Some individual commands and #Directives are very similar in form and function (e.g. IfWinActive and #IfWinActive), yet how and when each can be used is very different.

Continue reading