Live data from Hacker News

In Praise of AutoHotKey

hillelwayne.com

211–220 of 220 posts

Re: In Praise of AutoHotKey

#211

I use AHK to make CapsLock a custom modifier key, mostly to make VIM style movements available everywhere. Caps+p Ctrl+Backspace Delete previous word Caps+f Backspace Caps+d Delete Caps+h/j/k/l Left/Down/Up/Right Arrow Caps+u/i Home/End Caps+m/, Page Down/Up Caps+e/r Ctrl+Left/Right (next/previous word) Caps+3 Insert current date, e. g. 14.05.20 Caps+Shift+3 ISO format 2020-05-14 I also swapped Return with ' so it's…

My goodness, the formatting.

  Caps+p         Ctrl+Backspace (Delete previous word)
  Caps+f         Backspace
  Caps+d         Delete
  Caps+h/j/k/l   Left/Down/Up/Right arrow
  Caps+u/i       Home/End
  Caps+m/,       Page Down/Up
  Caps+e/r       Ctrl+Left/Right (next/previous word)
  Caps+3         Insert current date, e. g. 14.05.20
  Caps+Shift+3   ISO format 2020-05-14

Re: In Praise of AutoHotKey

#212

Earlier quoted context omitted.

I had almost used up all combinations of Ctrl, Alt, Shift, Win and letters at one point, and still never thought of making my own hyper key. It's genius. At my new job I'm afraid to download AHK at all :(

There is a portable version of autohotkey, so you can run it without installation if this would ease your fear.

It's been a bit since I've last used AHK, but I believe you can also compile your script to .EXE and just take that to work with you.

Re: In Praise of AutoHotKey

#213
post #76

Oh god, I remember EMC made us use this to manage their god-awful support system. One of the worst experiences of my life in IT. Not the fault of AutoHotKey but they used it to paper over the cracks in their massively flawed and sucky support system. The only thing I’ve used that is worse than the SAP GUI.

The AHK scripts you mention was probably the work of somebody who automated himself out of a job. Now upper managment thinks they would save $$$ by maintaining the AHK scripts instead of the actual underlying support system.

No, he was promoted and fated. Those scripts required maintenance!

Re: In Praise of AutoHotKey

#215
I have been a big fan of Macro Express which has a GUI so if you aren’t a developer, you can build Macros. Never used AHK myself. Anyone used both that can comment on strengths of AHK vs Macro Express?

Re: In Praise of AutoHotKey

#216
post #84

Something I don't see mentioned in this thread is that Autohotkey is more than just hotkeys. It can also create basic GUIs using native Windows widgets, and is probably the fastest way of producing a GUI on windows (the resulting script can be bundled into an .exe file)

well ive never made a GUI in anything other than autohotkey so i wouldnt know what it is like in other languages, but it is indeed fast. ive been using autohotkey for maybe 4 years now so when i want to make a new GUI i usually just copy bits from previous GUIs that i have made.

otherwise there is AutoGUI that makes it really fast since you just have to drag and drop the elements you want

> the resulting script can be bundled into an .exe file

thats another thing that i dont see mentioned enough about autohotkey. being able to make scripts for other people and giving them just one file to run is so underrated!

Re: In Praise of AutoHotKey

#217
post #15

Here's what we really need - a tool that monitors the various user actions like specific application functionality used, website actions taken, and maybe keystrokes too (but that gets dicey), and then every month or so it recommends the most frequently done actions that you should automate with AHK or some other tool. What does the community think of this? PS - I use Alfred and Keyboard Maestro to get functionality s…

theres a function somebody wrote (acc.ahk) that can detect elements and text in a lot of windows programs. it can click things like the "add to library" button in spotify even when the window is minimised

there is the COM object that detect the same sort of things but in web browsers, but it only works in IE only. for firefox or chrome you would need to use selenium.

maybe these things can detect certain things being clicked as well? i dont know

Re: In Praise of AutoHotKey

#218

I use AHK to make CapsLock a custom modifier key, mostly to make VIM style movements available everywhere. Caps+p Ctrl+Backspace Delete previous word Caps+f Backspace Caps+d Delete Caps+h/j/k/l Left/Down/Up/Right Arrow Caps+u/i Home/End Caps+m/, Page Down/Up Caps+e/r Ctrl+Left/Right (next/previous word) Caps+3 Insert current date, e. g. 14.05.20 Caps+Shift+3 ISO format 2020-05-14 I also swapped Return with ' so it's…

[deleted]

Re: In Praise of AutoHotKey

#219

I use AHK to make CapsLock a custom modifier key, mostly to make VIM style movements available everywhere. Caps+p Ctrl+Backspace Delete previous word Caps+f Backspace Caps+d Delete Caps+h/j/k/l Left/Down/Up/Right Arrow Caps+u/i Home/End Caps+m/, Page Down/Up Caps+e/r Ctrl+Left/Right (next/previous word) Caps+3 Insert current date, e. g. 14.05.20 Caps+Shift+3 ISO format 2020-05-14 I also swapped Return with ' so it's…

i do something similar using the appskey or printscreen key as a modifier so i so i only have to use my right hand. i used lp;' instead of the usual hjkl vim keys though.

  printscreen::
  thumbMod := true
  return
  
  printscreen up::
  thumbMod := false
  return
  
  
  #if thumbMod
  
  l::    send {left}      ; move caret
  `;::   send {down}
  p::    send {up}
  '::    send {right}
  
  +l::   send +{left}     ; select text
  +`;::  send +{down}
  +p::   send +{up}
  +'::   send +{right}
  
  ,:: send {backspace} 
  .:: send {delete}
  
  #if

Re: In Praise of AutoHotKey

#220
post #157

I am using AHK on Windows for ~10 years now. Does anyone know of a linux equivalent?

theres actually a fair few things that do work with wine. any of the GUI stuff (although it looks a bit ugly), writing and reading to a file. menus. lots of other bits that i cant remember now.

but it only works with other programs that are running in wine so theres not a whole lot you can do with it at the same time. ive mostly been using it to process strings and that sort of thing.

ive been thinking i should try and make a list somewhere of what is working and what isnt. it would make it easier to test things every time there is a new version of wine released

i made a script for autokey that will run the selected file in wine when you press alt + r. if you download the portable version of autohotkey and add the path to it then you can use the same hotkey to run the a script

https://gist.github.com/davebrny/9850223119c4ee55485dfae1fcb...

Post reply on HN