Live data from Hacker News

In Praise of AutoHotKey

hillelwayne.com

21–30 of 220 posts

Re: In Praise of AutoHotKey

#21
I've used AHK a fair bit, and while it's quite helpful I can't help but want for a better syntax and less limited core language. I think it would do much better as a lisp with more obviously defined syntax boundaries.

Re: In Praise of AutoHotKey

#22
The hotstrings feature is also present in Linux, where they are known as compose sequences. The default compose sequences can be found in the Compose files under /usr/share/X11/locale and you can also have custom compose sequences in ~/.XCompose. Some of the compose sequences make use of a special Compose key (written in the rules). You may need to go to the keyboard settings to enable the compose key.

https://en.wikipedia.org/wiki/Compose_key

Edit: by the way, these compose sequences also work under Wayland. The only hiccup I found with wayland was that include directives didn't work so I had to put everything in a single file.

Re: In Praise of AutoHotKey

#23

I heavily use AHK to make my Windows 10 an enjoyable and keyboard focused environment. Between AHK and an hardware keyboard with full keyboard macro's, I have Windows working with my Macintosh inspired keyboard bindings. Of course on the Mac, I heavily use Keyboard Maestro and LaunchBar so I am really implementing my own keyboard centric UI

> hardware keyboard with full keyboard macros

Do you use one? Which? I used one, very convenient, in eighties(!) and haven't seen something comparable since.

The functionality I had then that I liked was: any key could be programmed to really anything else (except the special "macro" key) -- another key or another sequence of the keys, and I regularly did some action once, recording it with just one "start recording" and one "stop and assign to.." action and after that just "playing" it when needed. It was a huge time / nerves saver at these times, especially because it was fully independent of the programs and even of which OS I've used (I've had to switch between two even then).

Re: In Praise of AutoHotKey

#24
Being too cheap to rent a photo booth for our wedding I used AutoHotKey to glue a software to control my (then) fiancees Nikon and Irfanview together. The software ran on my Laptop, the camera was connected via USB.

Re: In Praise of AutoHotKey

#26
I've started programming using Autohotkey, I just wanted a script for age of empire 2 to manage where catapult can efficiency dispatch attacks. After that I made a bot that can auto fold poker hands, it worked, with AHK you can search image on the screen and get position of the matched image. After that I made a fully functional and autonomous poker bot

many years later I am now a software engineer, I just wanted to manage my catapult on Age of empire 2 ....

So AHK is very powerfull, easy langage and awesome !

Re: In Praise of AutoHotKey

#27
Oh man, I am using (abusing?) AHK so hard. I work with legacy software programs for structural analysis, where everything in the model has to be input with clunky form fields. Thousands of properties need to be defined for various structural components (beams, columns, etc). It used to be >2 weeks of entering numbers into fields and clicking buttons.

Now, AHK is set up to just reads my design spreadsheets and define everything in a few minutes. I hate the language syntax, but man is it useful! God bless AHK!

Re: In Praise of AutoHotKey

#28

A thousand times, this. I love AHK. It, along with Ditto Clipboard Manager (Yes, I know W10 has its own. It sucks) changes my workflow so much for the better. Some of my favorite examples: Right Alt becomes Ctrl Tab: Ralt::^Tab Common typos: ::teh::the ::alreadsy::already ::nopity::Call to undefined function pity() ::awk1::awk '{{} print $1 {}}' ::du-m::du -m --max-depth=1 | sort -n But it goes waaay behond this. I o…

I'm a bit masochistic when it comes to typos. This is from my AHK script:

    :*:netowrk::
        Send, {Home}+{End}{Delete}
        return
What it does: I have a really bad habit of misspelling "network" that way. I think my right hand is just so eager to get that 'o' keyed in that it doesn't wait for my left hand to hit the 'w' first. So I'm always screwing that word up when typing quickly.

So now, when I make that mistake, I'm punished by having the entire line of text deleted. '{Home}' moves the cursor to the start of the line, '+{End}' is the [Shift]+[End] key to highlight the whole thing, then {Delete} metes out the justice I deserve.

Re: In Praise of AutoHotKey

#29
I absolutely love AutoHotKey. I've been using it for over 15 years. I used to use it to format my HTML back when i only used a Text Editor (similar to what this link is using for Markdown. I never use my right-control key so I map a lot of stuff to it. I used to have macros on rightctrl+b = surround the selection with and later (yes, it was that long ago). I had some nifty ones with logic for adding s (looking for @ and http://).

These days I use it for fewer things, but still really useful. One of those is making chat applications that don't offer ctrl+enter to send a message - Like Google Hangouts (basically flopping the functionality):

#IfWinActive Google Hangouts ahk_class Chrome_WidgetWin_1

    ^enter::
    Send {Enter}
    Return

    enter::
    Send +{Enter}
    Return
Another extremely useful is this one, which will type what's on the clipboard rather than pasting it:

    >^v::
    SendRaw %clipboard%
    Return
And when I hit shift also, it does it slow (for input lag situations):

    >^+v::
    SetKeyDelay 500
    SendRaw %clipboard%
    Return
Extremely useful for two main reasons. 1 being input boxes on websites that prevent pasting and 2. certain remote sessions that prevent pasting (like Kesaya or any kind of Console remote application).

Re: In Praise of AutoHotKey

#30
AutoHotKey scripts gets me some pretty insane lee-sin ward-hops so yeah its a pretty awesome tool.

You can mess with league of legends folks a lot with it actually. You can use it to spam 5 pings around someone instantly. You can spam emotes with it. You can write messages quickly in chat.

Post reply on HN