Ciantic / VirtualDesktopAccessor

DLL for accessing Windows 11/10 Virtual Desktop features from e.g. AutoHotkey
MIT License
772 stars 93 forks source link

No Actions on Windows Build 22631.2191 #70

Closed MrYutz closed 1 year ago

MrYutz commented 1 year ago

I am running 22631.2191. I don't get any actions from the example script.

The hot keys are being triggered and appear to be calling the correct functions as a result, but there is no feedback or actions.

Any direction on troubleshooting the DLL or AHK?

135: MoveOrGotoDesktopNumber(1)
070: If (GetKeyState("LButton"))
073: GoToDesktopNumber(num)
065: DllCall(GoToDesktopNumberProc, "Int", num, "Int") (0.02)
066: Return
074: }
075: Return
135: } (0.64)
134: MoveOrGotoDesktopNumber(0)
070: If (GetKeyState("LButton"))
073: GoToDesktopNumber(num)
065: DllCall(GoToDesktopNumberProc, "Int", num, "Int")
066: Return
074: }
075: Return
134: } (0.75)
137: MoveOrGotoDesktopNumber(3)
070: If (GetKeyState("LButton"))
073: GoToDesktopNumber(num)
065: DllCall(GoToDesktopNumberProc, "Int", num, "Int")
066: Return
074: }
075: Return
137: } (12.30)
134: MoveOrGotoDesktopNumber(0)
070: If (GetKeyState("LButton"))
073: GoToDesktopNumber(num)
065: DllCall(GoToDesktopNumberProc, "Int", num, "Int")
066: Return
074: }
075: Return
fredless commented 1 year ago

I also see this problem.

The virtual desktop enhancements in Windows 23H2 Insider update seem to break a lot of programs that would switch virtual desktops. Also reported a similar problem with SylphyHornPlus: https://github.com/hwtnb/SylphyHornPlusWin11/issues/33

itzjakm commented 1 year ago

Please see here for the updated dll and rust code. (You can find the dll in the releases)

MrYutz commented 1 year ago

I can confirm that his fixed the issue. Desktop switching works now. Thank you @itzjakm!!