TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Somehow AutoHotKey is kinda good now

121 点作者 psxuaw大约 2 年前

28 条评论

rektide大约 2 年前
Reciprocally, it&#x27;s just amazing how much better AutoHotKey is at scripting the computer is than everything else is. The language was clearly never the reason why AHK persisted.<p>There&#x27;s works like AutoPy (<a href="https:&#x2F;&#x2F;github.com&#x2F;autopilot-rs&#x2F;autopy">https:&#x2F;&#x2F;github.com&#x2F;autopilot-rs&#x2F;autopy</a>) and AutoPilot-rs (<a href="https:&#x2F;&#x2F;github.com&#x2F;autopilot-rs&#x2F;autopilot-rs">https:&#x2F;&#x2F;github.com&#x2F;autopilot-rs&#x2F;autopilot-rs</a>), but they offer like 1&#x2F;100th the capabilities AHK does.<p>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 &amp; programming. In my ideal world, we&#x27;d have an EVE Online server that specifically re-enables the game-client&#x27;s python interpretter (and periodically does total wipes), so folks can learn to program by scripting not just their desktop, but a complex &amp; interesting game, via it&#x27;s rich api.
评论 #35811107 未加载
评论 #35811086 未加载
thadt大约 2 年前
Back in the day when Facebook games were all the rage, my wife got hooked into Farmville. After getting roped into it to help her somehow (gifts or boosts or something, I don&#x27;t remember), I was struck by how repetive the actions were. Found AutoHotKey, and soon I had a near fully automated farm. Logging in every couple of days to make sure a popup hadn&#x27;t messed up the pattern, my farm was soon doing quite well.<p>My wife, completely put out that I was &#x27;cheating the game&#x27; decided that we didn&#x27;t need to keep up with Farmville anymore. AutoHotKey saved me a lot of time.
评论 #35811429 未加载
fencepost大约 2 年前
I was looking at EMR data export options for a (now closed) client and it seemed pretty likely that at least one was doing exports using AHK, AutoIt or something else similar to simply script producing PDF reports. Possibly with screen scraping, but it might have been possible with nothing but scripted inputs and manual spot checking.<p>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 &#x27;database&#x27; apps that make people&#x27;s heads explode.
评论 #35810921 未加载
geocrasher大约 2 年前
<p><pre><code> I love Autohotkey so much that it keeps me on Windows. It’s the best GUI automation tool out there. </code></pre> Amen. This is exactly it for me. I&#x27;m quite lost without AHK. I have yet to switch to V2 however.
评论 #35810989 未加载
dumbmrblah大约 2 年前
Initially, I hated auto hotkey and refused to learn another language, as lazy as that sounds.<p>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.<p>Still have no interest in learning the language, though.
评论 #35819681 未加载
csdvrx大约 2 年前
It was always good. I used it to make my own tiling WM for windows, removing decorations and putting windows at fixed coordinates. The syntax is now better, but that doesn&#x27;t change much.<p>For the many people who say they don&#x27;t like AHK, I don&#x27;t think a lot have actually tried to use it. It may be &quot;dirty&quot; but it makes it easy to do most of anything you can think about (it can even call dlls)
评论 #35811041 未加载
评论 #35810958 未加载
hexane360大约 2 年前
I loved AutoHotKey V1, in all its janky glory. Say what you will, it was better than batch scripting. I especially loved the primitive GUIs you could make with it.<p>Nowadays I don&#x27;t have as much need for Windows automation, but I&#x27;m glad to see the overhaul. I definitely miss a similar program on other OSes.
评论 #35811919 未加载
EsportToys大约 2 年前
AutoIt is also great especially for quickly prototyping GUIs.<p>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.<p>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&#x27;s a trackball[1], which I now use everyday whenever I&#x27;m not with my ThinkPad.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;EsportToys&#x2F;NaturalEdgePan">https:&#x2F;&#x2F;github.com&#x2F;EsportToys&#x2F;NaturalEdgePan</a><p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;EsportToys&#x2F;TPMouse">https:&#x2F;&#x2F;github.com&#x2F;EsportToys&#x2F;TPMouse</a>
评论 #35819572 未加载
2Gkashmiri大约 2 年前
I love autohotkey.<p>It has no schema constraints, you can write all code in a single line if you want.<p>IT NEVER HAS INDENTATION issues.<p>It never wants you to type in a certain way. Just write and do.<p>It never assumes, just does the commands as is.<p>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.
JohnBerea大约 2 年前
Why do I have to learn Yet Another Language to use this? Why can&#x27;t it just use JavaScript or python for scripting?
评论 #35811986 未加载
评论 #35815965 未加载
评论 #35822954 未加载
snitzr大约 2 年前
I took a business class where one assignment was to run a simulation program and try to find the combination of factors that gave the best result. Professor said we could run as many combinations as we liked and he would use the average of each simulation to see who did the best. I had AHK so I ran every simulation combination once and then wrote a script that ran the best outcome over and over to make my initial attempts statistically insignificant. I had the highest average score for that assignment.
kragen大约 2 年前
this reminds me of yossi kreinin&#x27;s &#x27;i can&#x27;t believe i&#x27;m praising tcl&#x27; <a href="https:&#x2F;&#x2F;yosefk.com&#x2F;blog&#x2F;i-cant-believe-im-praising-tcl.html" rel="nofollow">https:&#x2F;&#x2F;yosefk.com&#x2F;blog&#x2F;i-cant-believe-im-praising-tcl.html</a><p>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<p>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<p>like, requiring commas between arguments is probably bad? especially between the command name and its arguments? pv-wave idl is the only thing i&#x27;ve ever used that made that mistake<p>from the degree of annoyance my wife is having with the &amp; required by scanf in c (she knows more lua than c but the class she&#x27;s taking is in c), i predict that ahk 2 will not be very popular with ahk 1&#x27;s audience, who mostly don&#x27;t know any other programming languages<p>i&#x27;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)
评论 #35820659 未加载
Tozen大约 2 年前
Though it&#x27;s true that AHK v1 was a bit eccentric or wonky, it did a really good job at its primary purposes, among them making it easy for non-programmers and newbies to use it.<p>I&#x27;ve talked to and read about so many people that needed to do programming tasks, but couldn&#x27;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&#x27;s where AutoHotkey has found a way in, to the joy of many of its users.<p>While AHK v2 is an improvement in many ways, I think it&#x27;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.
porridgeraisin大约 2 年前
There is even a dwm-style extremely comprehensive tiling window manager called bug.n [1], which I downloaded it way back in windows 8 days. Made a lot of changes myself and plan to open source it as a fork. Its too good. And combined with the rest of my AHK scripts, my windows setup turns out to be even more customised than many Linux systems I use.<p>See my post of my windows setup fooling r&#x2F;unixporn [2] for how it could look.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;fuhsjr00&#x2F;bug.n">https:&#x2F;&#x2F;github.com&#x2F;fuhsjr00&#x2F;bug.n</a> [2] <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;unixporn&#x2F;comments&#x2F;neqnmi&#x2F;bspwm_not_even_websites_can_escape_the_nord&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;unixporn&#x2F;comments&#x2F;neqnmi&#x2F;bspwm_not_...</a>
bsnnkv大约 2 年前
It was only when I started writing my own sxhkd-inspired hotkey daemon[1] for Windows that I really started to appreciate just how _good_ AHK is. Even just for hotkey binding, AHK does some incredibly clever stuff very transparently to provide for such an excellent end-user experience. For example, using system hooks automatically when the user tries to bind a hotkey combination that is reserved by the system (usually win+something) is implemented so well. Really excellent software and I miss it when I&#x27;m using Linux or macOS.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;LGUG2Z&#x2F;whkd">https:&#x2F;&#x2F;github.com&#x2F;LGUG2Z&#x2F;whkd</a>
thot_experiment大约 2 年前
Autohotkey was always good. One of the killer windows apps by a big margin vs competitors. I&#x27;ve had a AHK script I&#x27;ve been adding to for 10 years. One of the first things I put on a new computer.<p>#1 most used feature?<p>remapping caps lock to do wide text for easy memeing
评论 #35811631 未加载
mikeywazowski大约 2 年前
Other than for the fact that it&#x27;s open source, is there any reason people prefer AHK to AutoIt?<p>I haven&#x27;t used either for some time now because I don&#x27;t use Windows much these days, but I tried both and vastly preferred AutoIt. I&#x27;m surprised that the author stuck with AHK when he says &quot;AHK v1 was very, very bad.&quot;, when surely AutoIt was a viable alternative?
评论 #35810716 未加载
评论 #35818828 未加载
评论 #35812162 未加载
评论 #35810928 未加载
评论 #35810835 未加载
mttyng大约 2 年前
Does anyone have any ahk file(s) they would like to share? I have (to me) a basic setup but I’ve never gone very deep on it, but I’d like to. As a new-to-windows user I REALLY miss some of the Linux key commands I’ve set up in i3.
评论 #35820063 未加载
评论 #35819485 未加载
Freedom2大约 2 年前
There&#x27;s a few automations I want to try out, but does AHK still interfere with anti-cheat in games? I&#x27;m concerned if I forgot to turn it off (or if the anti-cheat just simply scans for a AHK executable), I&#x27;ll be OOL.
评论 #35810924 未加载
评论 #35821538 未加载
viraptor大约 2 年前
I&#x27;ve got some apps which outgrew what ahk&#x2F;autoit can realistically provide for me and moved everything to be based on FlaUI (C# library) instead. I&#x27;d really recommend that if people hate the weird custom scripts.
DiabloD3大约 2 年前
For my use, I replaced AHK with kanata. I needed, basically, software QMK, not something to automate and script things.
LispSporks22大约 2 年前
Is there something like it for Linux?
评论 #35815237 未加载
评论 #35811139 未加载
评论 #35820981 未加载
评论 #35829091 未加载
theshrike79大约 2 年前
The first (and only) time I used AutoHotKey was when I was playing the OG Farmville on Facebook (when they still had games).<p>I made a script that automatically planted and harvested seeds on a specific shape of a plot.<p>After that I really haven&#x27;t found a use for either AHK or Hammerspoon
bartislartfast大约 2 年前
AHK was my go to solution for the longest time, and I had some amazing shortcuts, but I often struggled with writing more complex scripts because of the language not working the way I wanted it to. I might try again now.
deafpolygon大约 2 年前
What I really want to know is , what can I use AHK for? Seems like for most &quot;programming&quot;-type things I reach for Python or C#.. these days it&#x27;s been PowerShell, and I don&#x27;t know what to use AHK for.<p>Would love suggestions.
评论 #35811368 未加载
评论 #35812214 未加载
评论 #35820881 未加载
评论 #35818089 未加载
评论 #35811494 未加载
评论 #35812992 未加载
评论 #35826476 未加载
simula67大约 2 年前
&gt; It’s the best GUI automation tool out there.<p>I think PyAutoGui is pretty good.
replwoacause大约 2 年前
If I had to do Windows automation I would reach for:<p><a href="https:&#x2F;&#x2F;www.libreautomate.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.libreautomate.com&#x2F;</a>
mastercheif大约 2 年前
Is there anything equivalent to Keyboard Maestro on Windows? <a href="https:&#x2F;&#x2F;www.keyboardmaestro.com&#x2F;main&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.keyboardmaestro.com&#x2F;main&#x2F;</a><p>I tried using AutoHotKey... I was appalled by the experience.
评论 #35811040 未加载
评论 #35811357 未加载