Live data from Hacker News

AutoHotkey v2 Official Release Announcement

autohotkey.com

101–110 of 153 posts

Re: AutoHotkey v2 Official Release Announcement

#101

Autohotkey is the only windows thing I miss on Linux. And it seems impossible to even discuss desktop automation with contemporary Linux DE people, they just glaze over. "Like, why would you want apps to be able to control other apps, that sounds dangerous! We definitely want to protect you from that in Wayland.... Oh, what's that? You are a large consultancy that uses time tracking apps to help with billable hours?…

You are a large consultancy but too broke to pay anyone to write software? Yeah, then changing your business model is probably long overdue.

Re: AutoHotkey v2 Official Release Announcement

#102

Autohotkey is the only windows thing I miss on Linux. And it seems impossible to even discuss desktop automation with contemporary Linux DE people, they just glaze over. "Like, why would you want apps to be able to control other apps, that sounds dangerous! We definitely want to protect you from that in Wayland.... Oh, what's that? You are a large consultancy that uses time tracking apps to help with billable hours?…

Check out https://bitbucket.org/mfeemster/keysharp/ and https://github.com/phil294/AHK_X11, two attempts at reimplementing AHK on Linux. The former is v2 but not usable yet, the latter is by me, v1 "classic" and somewhat incomplete.

Re: AutoHotkey v2 Official Release Announcement

#103

Autohotkey is awesome and special, and everybody on Windows should learn it. There is no such thing on any other OS. v2 syntax and features are so much better. It was basically in development for a decade and AHK itself more then 20 years.

Autokey on Linux?

Re: AutoHotkey v2 Official Release Announcement

#104
post #89

I use AutoHotkey every day but find it’s not very reliable. I have one script that checks if the current window is File Explorer and if it is, gets the currently selected file or directory and does something with that. If I have more than one tab open, it will usually (but not always) give me the selected item from a different tab. Reloading the script fixes the issue sometimes.

Tabs are new in the Windows Explorer, right? Did you update your script to reflect that?

I’ll look at it again, but it seems if that were the problem then reloading the script wouldn’t change anything.

Re: AutoHotkey v2 Official Release Announcement

#105

Autohotkey is awesome and special, and everybody on Windows should learn it. There is no such thing on any other OS. v2 syntax and features are so much better. It was basically in development for a decade and AHK itself more then 20 years.

Autokey on Linux?

There is no such thing, at least in the mainstream. There are surogates, more or less capable, however nothing close to AHK

1. xdotool

2. sikuli

3. AHK_X11

Re: AutoHotkey v2 Official Release Announcement

#106
post #88

I use AutoHotkey every day but find it’s not very reliable. I have one script that checks if the current window is File Explorer and if it is, gets the currently selected file or directory and does something with that. If I have more than one tab open, it will usually (but not always) give me the selected item from a different tab. Reloading the script fixes the issue sometimes.

It looks like Explorer tabs are a very recent addition to W11, so perhaps it isn't fully supported by AH1? Unless by 'tabs' you mean 'instances' or 'windows'?

It works sometimes and when it doesn’t, reloading the script will sometimes fix the problem.

I just asked ChatGPT how to get the currently selected file in the current tab of File Explorer in AutoHotkey and it spit out code that works quite a bit differently than mine. Later today I’m going to figure out what it’s suggesting and see if a different approach is needed.

——-

The ChatGPT code is nonsense that looks like AutoHotkey code.

Re: AutoHotkey v2 Official Release Announcement

#107

Autohotkey is the only windows thing I miss on Linux. And it seems impossible to even discuss desktop automation with contemporary Linux DE people, they just glaze over. "Like, why would you want apps to be able to control other apps, that sounds dangerous! We definitely want to protect you from that in Wayland.... Oh, what's that? You are a large consultancy that uses time tracking apps to help with billable hours?…

Check out https://bitbucket.org/mfeemster/keysharp/ and https://github.com/phil294/AHK_X11 , two attempts at reimplementing AHK on Linux. The former is v2 but not usable yet, the latter is by me, v1 "classic" and somewhat incomplete.

Many thanks. How do they compare with autokey? I haven't tried it properly, but it gets mentioned a lot. https://github.com/autokey/autokey

Re: AutoHotkey v2 Official Release Announcement

#108
post #59

Earlier quoted context omitted.

Why? The AHK python library isn't going to be so cleanly abstracted so that a different automation engine (eg hammerspoon w/ lua on macOS) can be plugged in, so the code is always going up be tightly coupled to AHK, and Python support is likely to be second-class to support for its own language. So other than some obsessive need to standardize on a single language which will never be won, what does Python buy?

Python buys into pypi, which has a 6-digit number of packages, e.g opencv can read your screen to find buttons, etc.

I realise you are giving opencv as an example of why having Python to AHK would be desirable, but for anyone wanting to read GUI elements like buttons there is ImageSearch[1]:

Also, to make it even easier to generate AHK scripts to automate button clicks, clicker games, or boring tasks requiring the keyboard and mouse, you can generate an image recognition AHK script quite easily using Pulover's Macro Creator[2]. Even someone with minimal knowledge of scripting can use it to automate Windows.

Even without Python, AHK is amazing. It gets a lot of undeserved flak from advanced users, undeservedly so in my opinion.

[1] https://www.autohotkey.com/docs/v1/lib/ImageSearch.htm

[2] https://www.macrocreator.com/

Re: AutoHotkey v2 Official Release Announcement

#109

Autohotkey is the only windows thing I miss on Linux. And it seems impossible to even discuss desktop automation with contemporary Linux DE people, they just glaze over. "Like, why would you want apps to be able to control other apps, that sounds dangerous! We definitely want to protect you from that in Wayland.... Oh, what's that? You are a large consultancy that uses time tracking apps to help with billable hours?…

Its possible - atleast on xorg, but why not write scripts in your favourite language to do the same automation instead of using a third party app ?

Re: AutoHotkey v2 Official Release Announcement

#110
post #59

Earlier quoted context omitted.

Python buys into pypi, which has a 6-digit number of packages, e.g opencv can read your screen to find buttons, etc.

I realise you are giving opencv as an example of why having Python to AHK would be desirable, but for anyone wanting to read GUI elements like buttons there is ImageSearch[1]: Also, to make it even easier to generate AHK scripts to automate button clicks, clicker games, or boring tasks requiring the keyboard and mouse, you can generate an image recognition AHK script quite easily using Pulover's Macro Creator[2]. Eve…

No flak intended, AHK is much easier for non-programmers and can do more than you’d think. I’ve show a few people how to rig up an automation in a few minutes. The bar to entry is much lower than for any of the «serious» languages out there. AHK is amazing!
Post reply on HN