pmb6tz / windows-desktop-switcher

An AutoHotKey script for Windows that lets a user change virtual desktops by pressing CapsLock + <num>.
MIT License
1.23k stars 230 forks source link

Anny way to make the desktop not also switch when moving an app to another desktop? #63

Closed NicTanghe closed 4 years ago

NicTanghe commented 4 years ago

Anny way to make the desktop not also switch when moving an app to another desktop?

NicTanghe commented 4 years ago

9 ive noticed that this already happens when using RH windows and alt. my shortcut is #!1::MoveCurrentWindowToDesktop(1)

Elijas commented 4 years ago

Yes, all you need to do is to "comment out" the instruction that changes the desktop after moving the window. You can do this by adding a semicolon at the beginning of this line:

https://github.com/pmb6tz/windows-desktop-switcher/blob/36d1b3ed5ddaca16abedab703aeb07accf5f66f1/desktop_switcher.ahk#L195

so it looks like this:

;switchDesktopByNumber(desktopNumber)

To apply the changes, close the program and run it again.

Let us know if this works for you!

NicTanghe commented 4 years ago

It worked. thx