You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running the v2_port version with a modified VD.ah2 so that it works under windows 11 build 22621.
The VD.ah2 is attached
When I run the MoveToDesktop.ahk (attached) the ^#left and ^#right do not switch to the relative desktop. The code runs but the desktop doesn't change.
If I run #!right everything comes right: I can then use ^#left and ^#right as expected, until the next time that I load the AHK script (next logon).
If I uncomment the MsgBox line (line 41 in MoveToDesktop.ahk) then everything works (after acknowledging the MsgBox). Similarly if I put a MsgBox in the ^#left and ^#right section they will also work but that puts up a MsgBox every time the key combo is used !
Actually, after a computer restart with the compiled exe loading from startup, the MsgBox doesn't help. I need to do a #!right (or left) before the ^#left or ^#right will move to the relative desktop.
I'm getting the exact same issue on a windows10 computer with the same MoveToDesktop compiled using V2.0.2 AutoHotKey64.exe
attached is all of the files used. AHKMoveToDesktop.zip
I did some more testing. Cloned the v2_port branch again, added in my extras (Icon folder and MoveToDesktop.ahk) and replaced VD.ah2 with the modified version to work on latest windows 11. Ran the ahk and it worked perfectly. Made an exe and it worked perfectly, even after Exit and reloading. Rebooted the computer and back to same issue of the goToRelativeDesktopNum not working until after a #!left (or right) was used. Seems something is changing from one windows session to another and is not being initialized initially .
Found that it I use ^#, and ^#. instead of ^#left and ^#right it works correctly even after making an exe and rebooting. This is also weird as I had tested by putting a MsgBox in the code for those key combos and the MsgBox would show up but the desktop would not change which meant that the key combo was being actioned by AHK.
I'm running the v2_port version with a modified VD.ah2 so that it works under windows 11 build 22621.
The VD.ah2 is attached
When I run the MoveToDesktop.ahk (attached) the ^#left and ^#right do not switch to the relative desktop. The code runs but the desktop doesn't change.
If I run #!right everything comes right: I can then use ^#left and ^#right as expected, until the next time that I load the AHK script (next logon).
If I uncomment the MsgBox line (line 41 in MoveToDesktop.ahk) then everything works (after acknowledging the MsgBox). Similarly if I put a MsgBox in the ^#left and ^#right section they will also work but that puts up a MsgBox every time the key combo is used !
Files.zip
The text was updated successfully, but these errors were encountered: