Discover and read the best of Twitter Threads about #IfWinActive

Most recents (1)

Some AutoHotKey tips:

1. Don't shirk on good practice. Most AHK code in the wild is jank because most AHK coders aren't software developers, they don't know any better. But you do, so use functions, proper data structures, abstractions, etc and the process will be a lot nicer.
2. You can use window groups to restrict a hotkey to just web browsers (via IfWinActive) or make a hotkey that alt-tabs through a specific set of programs (via GroupActivate)

autohotkey.com/docs/commands/…
3. The #If directive takes expressions. I have Numpad- flip a `subscript_mode` flag and two sets of hotkeys that are conditionally activate. That way I can use the same keycombo for ¹ and ₁

autohotkey.com/docs/commands/…
Read 15 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!