Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
daveM246 authored Apr 9, 2023
1 parent b36ded2 commit 068e175
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
Works on Windows 10 and 11

Simply download the exe and run it.
To automatically run at logon, place a shortcut to it in your startup folder
To automatically run at logon, place a shortcut to it in your startup folder.

Created this from examples in VH.ahk ( https://github.com/FuPeiJiang/VD.ahk )
Created this from examples in VH.ahk ( https://github.com/FuPeiJiang/VD.ahk ).

Idea and explanation of how to do it is from
https://superuser.com/questions/1685845/moving-current-window-to-another-desktop-in-windows-11-using-shortcut-keys
but used the hot key functions from VD examples.ahk
but used the hot key functions from VD examples.ahk .

Usage:
Expand All @@ -22,32 +22,32 @@


The script also ensures that at least three desktops are open at startup.
Used modified code from https://github.com/FuPeiJiang/VD.ahk/discussions/23
to display current desktop number on system tray ico
Icons downloaded from https://www.iconarchive.com/show/red-orb-alphabet-icons-by-iconarchive.1.html
Used modified code from https://github.com/FuPeiJiang/VD.ahk/discussions/23 to display current desktop number
on the system tray icon.
Icons downloaded from https://www.iconarchive.com/show/red-orb-alphabet-icons-by-iconarchive.1.html .


Build method (not required if you use the exe):

1. Download and install AutoHotKey
1. Download and install AutoHotKey.

2. Clone the VD.ahk repository (it is an AutoHotkey library adding several script functions for managing virtual desktops)
2. Clone the VD.ahk repository (it is an AutoHotkey library adding several script functions for managing virtual desktops).

3. Inside the cloned directory, create a new file (MoveToDesktop.ahk) and paste the content (see AHKMoveToDesktop.ahk)
3. Inside the cloned directory, create a new file (MoveToDesktop.ahk) and paste the content (see AHKMoveToDesktop.ahk).

4. Copy the Icons folder into the VD.ahk repository folder (it is required by the script)
4. Copy the Icons folder into the VD.ahk repository folder (it is required by the script).

5. Double-click the script to run it.
The shortcuts (Win+Alt+→: Move current window to the next desktop; Win+Alt+←: Move current window to the
previous desktop) should now work.
Note that AHK would not run the script initially and installed ver 1 for compatibility
Note that AHK would not run the script initially and installed ver 1 for compatibility.

6. Use Akh2Exe to convert the script to an exe called AHKMoveToDeskTop_x64.exe.
The compiled exe includes the necessary AHK functionality, the VD-AHK library and the icon files
The compiled exe includes the necessary AHK functionality, the VD-AHK library and the icon files.

7. To make sure the exe runs on every Windows startup, create a shortcut to it and put it into your %Startup% folder.

8. Uninstall AutoHotKey (no longer required, optional step)
8. Uninstall AutoHotKey (no longer required, optional step).



Expand Down

0 comments on commit 068e175

Please sign in to comment.