Comments (13)
@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.
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.
@Katsuyamaki,
try this Update
1d9a94e
from vd.ahk.
@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.
_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.
The changes applied at the respective locations in the AHKv2 versions do also fix the issue there. Thanks!
from vd.ahk.
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.
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.
Having the same issue with AHK V2. Could anyone adapt the fix for V2 as well, please.
from vd.ahk.
@generis-it
Just look at the diff and search the hexadecimal codes and replace them accordingly.
from vd.ahk.
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.
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.
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)
- After pinning with AH2 version, I get an error when switching desktops by number.
- Script sending "Q" to discord | Desktop switch failure. HOT 2
- getDesktopNumOfWindow sometimes returns -1 rather than the correct num HOT 4
- Error HOT 10
- open Application directly on one virtual desktop in background HOT 2
- "Error: (0x80004002) No such interface supported" after updating Windows 11 (Beta insider channel) HOT 13
- sending keypress to specified virtual desktop only.
- Ah2: Desktop Looping & Switching + Other Feature Regression from Commit ee2f54f626914273f00853306c1daaf803f756cb HOT 2
- It doesn't work on Windows 11 Build 22621.2215 (22H2) HOT 2
- A problem with the new Windows update 11 HOT 18
- Virtual desktop Tasksbar icons HOT 4
- renaming desktops HOT 1
- Switching to Relative Desktop fails initially HOT 2
- Current desktop count is always zero
- New Windows Build 23606: VD.getCurrentDesktopNum() always returns 0 HOT 4
- Windows Server 2022 version HOT 3
- v2_port分支没有 TogglePinApp,PinApp,UnPinApp HOT 2
- WinExist in another virtual desktop HOT 7
- Previous Desktop HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vd.ahk.