Add a sample script of Autohotkey v2 #11

Closed
opened 2026-01-05 14:47:38 +01:00 by adam · 1 comment
Owner

Originally created by @crosstyan on GitHub (Aug 17, 2021).

As we know, AutoHotkey v2 is not compatible with v1. Personally I prefer v2 because its syntax is more suitable for scripting. I believe it's a trend to turn to v2.

Besides, Hide option of Run command doesn't work in v1 but works in v2 for me. I'm not sure why it happens. Anyway I turned to v2 now.

Here is a gist I created in AutoHotkey v2.

By the way, did the feature described in #3 support v2?

Originally created by @crosstyan on GitHub (Aug 17, 2021). As we know, [AutoHotkey v2](https://lexikos.github.io/v2/docs/AutoHotkey.htm) is not compatible with v1. Personally I prefer v2 because its syntax is more suitable for scripting. I believe it's a trend to turn to v2. Besides, Hide option of Run command doesn't work in v1 but works in v2 for me. I'm not sure why it happens. Anyway I turned to v2 now. Here is a [gist](https://gist.github.com/crosstyan/dafacc0778dabf693ce9236c57b201cd) I created in AutoHotkey v2. By the way, did the feature described in #3 support v2?
adam closed this issue 2026-01-05 14:47:39 +01:00
Author
Owner

@LGUG2Z commented on GitHub (Aug 17, 2021):

I was not aware of AHKv2 as I'm quite new to using Windows! I have added support for executing configuration from an AHKv2 file, but they must be named komorebi.ahk2 to distinguish it from v1 files. I've added a section to the readme about using AHKv2 with a link to your gist as an example. 🎉

@LGUG2Z commented on GitHub (Aug 17, 2021): I was not aware of AHKv2 as I'm quite new to using Windows! I have added support for executing configuration from an AHKv2 file, but they must be named `komorebi.ahk2` to distinguish it from v1 files. I've added a section to the readme about using AHKv2 with a link to your gist as an example. 🎉
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#11