by psxuaw on 5/4/23, 1:03 AM with 94 comments
by rektide on 5/4/23, 3:42 AM
There's works like AutoPy (https://github.com/autopilot-rs/autopy) and AutoPilot-rs (https://github.com/autopilot-rs/autopilot-rs), but they offer like 1/100th the capabilities AHK does.
Personally I think this kind of computer-control is the perfect environment for teaching computing. Rather than writing apps or webapps, I feel like the idea of just writing code to do what you the user would do anyways, but better, is a fantastic introduction to computing & programming. In my ideal world, we'd have an EVE Online server that specifically re-enables the game-client's python interpretter (and periodically does total wipes), so folks can learn to program by scripting not just their desktop, but a complex & interesting game, via it's rich api.
by thadt on 5/4/23, 4:40 AM
My wife, completely put out that I was 'cheating the game' decided that we didn't need to keep up with Farmville anymore. AutoHotKey saved me a lot of time.
by fencepost on 5/4/23, 3:20 AM
But the driving question is whether you can combine A̴̢̤̻͍̤͚̫͒͗̏͒̈́̑̈́͒͘͘̕͝͝u̸͎͉̟͋̾͂̏͝͝t̶̲̳̗̪͎́̔͗̅̓́͌ọ̵̌H̶̪͍̯̯͔̣͎̘̹̿̌͆̍̂̽̊̕͘͠o̶̢̨̦̭̣̤̙̞̘̥̣̫͓͇͛̈́͗̉̃͋̿̊͂̑̅̅͗͝ţ̴͔̻̳̱̫͚͍̳̞̯͋̊̃K̷̬̻̩̯̝̩̯̠̹̝͈͉̙̺̫͋̎̐̇̄̓̇̌̅̋̋̚͘e̵̫̓́y̵͔̌ ̵̱̠͈́̅̌̉̍̑͝͝w̴̦̹̮̦͕͗̂̓i̷̟̫̝͔͍̇͊̉̆͘͘ͅt̵̹̭͎͎̗͕̦͍̰͚̀͜h̴̡͕̮̼̺̟̜͇̺̦̣̑̈́̐̑̚ͅ ̷̛̥͙̲̦̗͓͎̳̖͍̣͓̽͊̊̄̏͒̅̓͌̓͝E̴͇̻̗̱̭̣̐̈͑́ͅx̷̡̨̜̳̯͚̳́̒̎͒͑͒͘͜ĉ̴̻͓͎̬̤̤̖̖̭̱͒̋̂̀̎̌̐͠͝e̶̢̛̮͉̰̣͈̣̊͛̕̚l̶̢̛̛̞͍̬̈̂͂́̂̌̿̇͒̋͝͝ to develop 'database' apps that make people's heads explode.
by geocrasher on 5/4/23, 3:34 AM
I love Autohotkey so much that it keeps me on Windows. It’s the best GUI automation tool out there.
Amen. This is exactly it for me. I'm quite lost without AHK. I have yet to switch to V2 however.by dumbmrblah on 5/4/23, 3:21 AM
On a whim I asked ChatGPT to generate me some scripts and it works perfectly (at least v1 of AHK). I’ve fully integrated AHK into my day-to-day routine and at this point I don’t think I can switch OS’a without something comparable.
Still have no interest in learning the language, though.
by csdvrx on 5/4/23, 3:33 AM
For the many people who say they don't like AHK, I don't think a lot have actually tried to use it. It may be "dirty" but it makes it easy to do most of anything you can think about (it can even call dlls)
by hexane360 on 5/4/23, 2:40 AM
Nowadays I don't have as much need for Windows automation, but I'm glad to see the overhaul. I definitely miss a similar program on other OSes.
by EsportToys on 5/4/23, 4:17 AM
I recently built a proof-of-concept for a modernized method of interacting with RTS cameras[0], which unfortunately could not be achieved with frameworks like SDL due to their abstraction obscuring some of the native OS functions needed to create my idea.
Using AutoIt lets me basically just treat it as a minimal-boilerplate sandbox to make DllCalls. This also means that I could directly listen as well as post raw device messages. For example, I implemented an inertia-based cursor script that basically lets you use your homerow vim keys like it's a trackball[1], which I now use everyday whenever I'm not with my ThinkPad.
by 2Gkashmiri on 5/4/23, 4:06 AM
It has no schema constraints, you can write all code in a single line if you want.
IT NEVER HAS INDENTATION issues.
It never wants you to type in a certain way. Just write and do.
It never assumes, just does the commands as is.
Beginners into programming must learn this. Kids must be taught this. It gets a novice excited to use computers and with its simple syntax, it can be taught in a matter of hours.
by JohnBerea on 5/4/23, 3:37 AM
by snitzr on 5/4/23, 4:12 AM
by kragen on 5/4/23, 6:06 AM
tcl, like bash, makes some of the same decisions as autohotkey: literal strings are unmarked, while variables to use the value of are marked, and you can invoke commands without parentheses around their arguments
yosef makes a good case that these are the right choices for a command language only occasionally used for scripting, like tcl, but i wonder if they were also the right choices for ahk, however much they may have screwed up the details
like, requiring commas between arguments is probably bad? especially between the command name and its arguments? pv-wave idl is the only thing i've ever used that made that mistake
from the degree of annoyance my wife is having with the & required by scanf in c (she knows more lua than c but the class she's taking is in c), i predict that ahk 2 will not be very popular with ahk 1's audience, who mostly don't know any other programming languages
i'm interested to know what the best alternatives to ahk are for x11 and wayland, even if they do require being a programmer (i am)
by Tozen on 5/4/23, 6:25 AM
I've talked to and read about so many people that needed to do programming tasks, but couldn't or were intimidated by conventional programming languages, that found AHK v1 a lifesaver for them. Many tend to forget or not factor in small businesses, IT personnel, architects, office workers, etc... People who are not trained programmers or whose companies will not pay for the services of real programmers to make job tasks more efficient. That's where AutoHotkey has found a way in, to the joy of many of its users.
While AHK v2 is an improvement in many ways, I think it's also important to not lose sight of why lots of people fell in love with AutoHotkey in the first place. Making programming accessible and easy to use, to solve the problems they are dealing with.
by porridgeraisin on 5/5/23, 7:47 AM
See my post of my windows setup fooling r/unixporn [2] for how it could look.
[1] https://github.com/fuhsjr00/bug.n [2] https://www.reddit.com/r/unixporn/comments/neqnmi/bspwm_not_...
by bsnnkv on 5/4/23, 1:21 PM
by thot_experiment on 5/4/23, 4:08 AM
#1 most used feature?
remapping caps lock to do wide text for easy memeing
by mikeywazowski on 5/4/23, 2:25 AM
I haven't used either for some time now because I don't use Windows much these days, but I tried both and vastly preferred AutoIt. I'm surprised that the author stuck with AHK when he says "AHK v1 was very, very bad.", when surely AutoIt was a viable alternative?
by mttyng on 5/4/23, 4:18 AM
by Freedom2 on 5/4/23, 3:14 AM
by viraptor on 5/4/23, 4:17 AM
by DiabloD3 on 5/5/23, 1:29 AM
by LispSporks22 on 5/4/23, 4:15 AM
by theshrike79 on 5/4/23, 6:28 AM
I made a script that automatically planted and harvested seeds on a specific shape of a plot.
After that I really haven't found a use for either AHK or Hammerspoon
by bartislartfast on 5/4/23, 11:25 AM
by deafpolygon on 5/4/23, 4:15 AM
Would love suggestions.
by simula67 on 5/4/23, 4:13 AM
I think PyAutoGui is pretty good.
by replwoacause on 5/5/23, 1:04 AM
by mastercheif on 5/4/23, 3:59 AM
I tried using AutoHotKey... I was appalled by the experience.