-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autohotkey version 2? #1
Comments
It's not something that I need but a PR would definitely be welcome :) |
I could maybe attempt it, but can you explain to me the folder structure a bit, i know this is a wrapper for the komorebi configuration as well, if i change the syntax won't it affect the rest of the files? I'm assumimng the exe is only for autostarting, i'm not sure what the json.ahk is though |
The main script is To port to v2, you'll need to find an external json library that supports (If you load the |
would i need to use a more updated version of the library? like this? |
As long as it supports v2 it should work |
Hey i made an attempt on moving the syntax from v1 to v2, but got stuck, i used the v2 version of json library you used while removing some parts of the code since they weren't being used and were also causing a tone of errors, I'm not sure if it's a simple fix but I'm getting:
To be honest i'm still relatively new to all this so any help would be appreciated, some parameters/variables used don't seem defined anywhere like The pipes seemed to have been created, though i'm not sure how to confirm if it's receiving data, running Ignore any jank like the keybinding section being completely commented out 😅 I was trying to get it to use the %USERPROFILE% directory but it seemed not to work, here is the repo: https://github.com/Zerogaku/komotray-ahk-v2 by the way just so I understand, autohotkey or to be precise the DLLCall function, is taking the json recieved from the pipe, putting it in a "temporary buffer" with peek namedpipe and reading it with readfile, and running it into the library so the json is then converted into and object that autohotkey can then read and use, or is it the other way around, object to json? |
I made some progress with the script, it's able to run now, it creates the pipe and gets komorebi to subscribe, but then all komorebi commands cease to function, ahk specific keybindings work (liike openings apps and general remaps) but anything with a komorebic command attached to it will fail, but it seems successfully to send 1 hotkey before stopping though,
in the loop that caused the problem, anything placed after wouldn't work and removing it got the MsgBox working, MsgBox also worked when placed at the very top of the loop as well, but obviously removing that seemed to also stop the script from filtering the info properly. I pushed the recent changes to this repo then again, it could also be that komorebi is not sending data at all, which is why the script stops there, so i'm not sure |
Sounds good! I'm a bit busy these days but I'll try to review and add a branch once things lighten up. |
I'm dumb, didn't look at the issues before rewriting it to V2 myself as well 🙈 I'll make a fork PR so you can see the changes and have some comparison material |
hey can there be an update to version 2? I tried to modify the autohotkey script using a v2 script converter but i had no luck.
The text was updated successfully, but these errors were encountered: