DEV Community

Yogesh
Yogesh

Posted on

AHK Hotkeys & Hotstrings You’ve Been Missing - Part1💥

Stop copy-pasting the same text 50 times a day. This AutoHotkey script handles your repetitive typing so you can focus on actual work.

; ===== ESSENTIAL SETUP =====
#SingleInstance Force           ; Prevents duplicate scripts
#Requires AutoHotkey v2.0+      ; Future-proof automation
~*^s::Reload                    ; Edit + Ctrl+S = instant refresh
Tray := A_TrayMenu, Tray.Delete() Tray.AddStandard() Tray.Add()
Tray.Add("Open Folder", (*)=> Run(A_ScriptDir)) Tray.SetIcon("Open Folder", "shell32.dll", 4)


; ===== PERSONAL INFO AUTOFILL =====
:*:@@::your.email@domain.com    ; Type @@  email
::ph1::(555) 123-4567           ; ph1  primary phone
::ph2::(111) 222-3344           ; ph2  secondary phone
::adr::123 Main St, City, State ; adr  full address

; ===== PROFESSIONAL COMMUNICATION =====
::gm::Good morning,             ; gm  greeting
::ty::Thank you for your time.  ; ty  appreciation closer
::sig::Best regards,`nYour Name`nTitle ; sig  3-line signature

; ===== CONTENT HELPERS =====
::lorem::Lorem ipsum dolor sit amet, consectetur adipiscing elit... ; lorem  filler text

; ===== DYNAMIC SYSTEM INFO =====
:x:upt::SendText("Uptime: " Round(A_TickCount/60000) " mins") ; upt  system runtime
:x:usr::SendText(A_UserName)                ; usr  username
:x:comp::SendText(A_ComputerName)           ; comp  PC name
:x:osver::SendText(A_OSVersion)             ; osver  Windows version
:x:screen::SendText(A_ScreenWidth "x" A_ScreenHeight) ; screen  resolution
:x:wdir::SendText(A_WorkingDir)             ; wdir  current folder

; ===== KEYBOARD POWER TOOLS =====
^Del::Send("{End}+{Home}{Del}")  ; Ctrl+Del  delete entire line
!w::Send("!{F4}")                ; Alt+W  close window

; ===== APP LAUNCHERS =====  ; NEW SECTION!
!p::Run("mspaint.exe")        ; Alt+P  Launch Paint
!g::Run("www.google.com")     ; Alt+G  Open Google
!d::Run(A_MyDocuments)         ; Alt+D  Open Documents
^#d::Run("C:\Users\" A_UserName "\Downloads\") ; Ctrl+Win+D → Open Downloads

; ===== SYSTEM SETTINGS =====
$#b::Run("ms-settings:bluetooth")     ; Win+B → Bluetooth
$#n::Run("ms-availablenetworks:")     ; Win+N → Wi-Fi networks

; ===== SMART DATE SHORTCUTS =====
:x*:dt::Send(A_DD "-" A_MMM "-" A_YYYY)  ; dt → today's date (01-Jul-2025)
:x*:d-::Send(FormatTime(DateAdd(A_Now,-1,"Days"), "dd-MMM-yyyy")) ; d- → yesterday
:x*:d=::Send(FormatTime(DateAdd(A_Now,1,"Days"), "dd-MMM-yyyy"))  ; d= → tomorrow

Enter fullscreen mode Exit fullscreen mode

How This Actually Changes Your Daily Work

Email & Communication:
@@ → instant email address.
gm → "Good morning,"
sig → full signature.
Saves 5-7 minutes daily from repeated typing.

System Information:Type
comp for computer name,
screen for resolution,
uptime for system runtime.
Cuts troubleshooting from 2 minutes to 10 seconds.

Date Management:
dt → today's date,
d- → yesterday,
d= → tomorrow.
Eliminates 15-20 calendar lookups daily.

Keyboard Efficiency:
Alt+W closes apps comfortably,
Ctrl+Del deletes entire lines instantly.
Reduces strain, speeds editing.

Settings Access:
Win+B → Bluetooth,
Win+N → WiFi networks.
3-click tasks become 1-key shortcuts.

Real Impact: 15-23 Minutes Saved Daily

  • Text expansions: 8-12 minutes saved
  • System queries: 3-5 minutes saved
  • Date insertions: 2-3 minutes saved
  • Shortcuts: 2-3 minutes saved

Why This Beats Paid Alternatives

TextExpander Pro: $4.95/month → AutoHotkey: Free forever
PhraseExpress: Limited free version → AutoHotkey: No restrictions
Productivity apps: Cloud-dependent → AutoHotkey: Works offline

Getting Started (2 Minutes)

  1. Download AutoHotkey v2 (free, open-source)
  2. Save the script as productivity.ahk
  3. Replace placeholders with your info
  4. Double-click to run, start typing shortcuts

Add custom shortcuts: ::shortcut::Your text here

AutoHotkey Demo

The Bottom Line

This makes your existing typing faster without learning new habits. No subscriptions, no cloud dependencies - just immediate time savings on tasks you do dozens of times daily. The script runs invisibly, activating only when you type shortcuts.


Related: Ctrl+Shift+M: The Keyboard Shortcut That 10x'd My AI Productivity

Top comments (0)