Git Product home page Git Product logo

Comments (13)

miserton avatar miserton commented on July 27, 2024 2

@lscobe16's patch solved this and is a quick way to fix the ahk2 version. One issue some may face is that the patch is encoded with UTE-16 and git may have issues unless it is UTE-8. If you have that problem, just open it with Notepad++ and save as UTE-8 and convert the EOL to Unix. Or you can install it all from bash:

git clone -b v2_port https://github.com/FuPeiJiang/VD.ahk.git
cd vd.ahk
wget https://github.com/FuPeiJiang/VD.ahk/files/14130744/fix.patch
iconv -f UTF-16 -t UTF-8 fix.patch | tr -d '\r' > fix_converted.patch
git apply fix_converted.patch

from vd.ahk.

Katsuyamaki avatar Katsuyamaki commented on July 27, 2024

Hello - doesn't work for me either.

Im using 22631 and AHv1.

When I run the example/tutorial and I press F1/F2/F6 it just tells me zero desktops.

Pressing numberpad doesn't do anything.

from vd.ahk.

vlachig avatar vlachig commented on July 27, 2024

@Katsuyamaki,
try this Update
1d9a94e

from vd.ahk.

Katsuyamaki avatar Katsuyamaki commented on July 27, 2024

@Katsuyamaki, try this Update 1d9a94e

Thank you, this seemed to work!

Question though, it only works if I launch VD examples ahk. Is that right? I woulda thought it would be VD.ahk or _VD that I need to launch?

Not really an issue if I just launch VD examples though, but strange.

from vd.ahk.

vlachig avatar vlachig commented on July 27, 2024

_VD.ahk is a library. You can include it in your main script. Or use VD examples.ahk as your main script. You can add more stuff to it (hotkeys, hotstrings, timers etc.)

from vd.ahk.

lscobe16 avatar lscobe16 commented on July 27, 2024

The changes applied at the respective locations in the AHKv2 versions do also fix the issue there. Thanks!

from vd.ahk.

Katsuyamaki avatar Katsuyamaki commented on July 27, 2024

Thank you @lscobe16 and @vlachig - I was able to download that updated code and it worked.

How do I use the library? Do I just copy over the parts of the scripts I want from the library to my VD example.ahk script to get those parts to work? I always need the _VH.ahk script in the same folder as my example.ahk script right? I can't combine them together without more editing? (Although I understand I can rename the example.ahk if I want or just pull the contents of example.ahk to any other script I want.)

from vd.ahk.

lscobe16 avatar lscobe16 commented on July 27, 2024

The example.ahk is an example of such a script, that uses the library. It imports it using #Include %A_LineFile%\..\VD.ahk and calls its functions, e.g. using VD.goToDesktopNum(1).
You can do the same in any other script (of course using the respective relative include path).
For further general questions regarding usage, please refer to the README or create a separate issue.

from vd.ahk.

generis-it avatar generis-it commented on July 27, 2024

Having the same issue with AHK V2. Could anyone adapt the fix for V2 as well, please.

from vd.ahk.

lscobe16 avatar lscobe16 commented on July 27, 2024

@generis-it
Just look at the diff and search the hexadecimal codes and replace them accordingly.

from vd.ahk.

lscobe16 avatar lscobe16 commented on July 27, 2024

fix.patch

This patch contains all fixes I needed for the current and the last versions of Windows 11 with AHK2.
See here on how to apply it.
Feel free to include these in pull requests.

Credit goes to @machaus for the first fix and to @vlachig's comment above for the second one.

from vd.ahk.

Stan-Stani avatar Stan-Stani commented on July 27, 2024

I used VSCode to convert to UTF-8. Applying the patch complained about one whitespace error added, but that didn't prevent it from fixing the issue. I think that error is literally just about trailing whitespace etc. now being present.

from vd.ahk.

Viqsi avatar Viqsi commented on July 27, 2024

Can't speak to AHKv1 specifically, but from my own testing AHKv2 appears to have been recently fixed with 02f37bf (committed three weeks ago), and the AHKv1 equivalent 77a66c9 is also available. So we may be all good thanks to @FuPeiJiang's hard work now. I strongly suggest testing it as it means this issue may be fixed. 👍

from vd.ahk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.