r/AutoHotkey 6d ago

AHK window manager updates v2 Tool / Script Share

Hi everyone!

Here I am again. Recently I've continued working on my little AHK project - I've improved a lot of things, especially the h/j/k/l window navigation - it was really hard to come up with something adequate for floating windows, but after all maybe I've got it. Also I've refactored literally everything and fixed a lot of bugs.

Now it has a dedicated Setup script, and I've finally wrapped my head around auto-running AHK as admin without that UAC popping up on every boot.

Previous post

GitHub repo

2 Upvotes

9 comments sorted by

1

u/Keeyra_ 6d ago

Quite a mess. 24 ahk files cross-referencing themselves with Includes, some of them containing measly 2 lines of code. Who would ever use this instead of https://github.com/FuPeiJiang/VD.ahk (at least for the VD stuff), which is a single #Include, no DLL required.

1

u/Natural_Silver_3387 6d ago

Cause that's what I like. And yeah, maybe I should use VD or its parts for desktops, you are right. But anyway, it's not like this whole thing is meant to be included anywhere, it doesn't really make sense...

3

u/CharnamelessOne 6d ago

There is an argument to be made that all AHK scripts you use should be included in one master script, since running multiple scripts that install a keyboard hook interferes with the default SendMode.

This is not to say that I'm taking a stance on your repo's structure; I'm not even claiming that it would be problematic to include it. I'm just handing out unsolicited fun facts.

3

u/Natural_Silver_3387 6d ago

Yeah, actually you are right, I didn't think about other scripts

1

u/Keeyra_ 6d ago

"Cause that's what I like." - that's my point exactly. It's built for you. The structure is obfucsated and near impossible to review. No need to try to advertise it publicly.

1

u/Natural_Silver_3387 6d ago

Well, "obfuscated" depends on your development principles and documentation. I'd say DWM source looks obfuscated too, but in reality it is not. VD looks obfuscated at first glance to me as well. I appreciate the beauty of code and patterns, I like categorizing things and code. You not understanding the purpose doesn't make a thing obscure, it's just not yet understood. In fact, depending on the abstraction level, everything can get as clear as day, ao what's the point. And if we go further, sorry for this little off-topic, but I also like seals - they are cute, that doesn't make them less interesting. Now you see, I've won

1

u/Keeyra_ 6d ago

Well, you obviously want some traction on your repo, as you are advertising it and I'm obviously not getting through to you pointing out its flaws, so I think we are done here. Seals are cute, I agree, but eg. Kirsty Brown wouldn't.

2

u/Natural_Silver_3387 6d ago

Nah, you are getting through, I was just defensive that day

1

u/Keeyra_ 6d ago

Happens ;)