Skip to content

Instantly share code, notes, and snippets.

@YosefBayoude
Created October 23, 2021 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YosefBayoude/60963cc0f5fd3b37345e16bac2b9b266 to your computer and use it in GitHub Desktop.
Save YosefBayoude/60963cc0f5fd3b37345e16bac2b9b266 to your computer and use it in GitHub Desktop.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;Launhes the desktop switch
Loop, 3 {
SendInput ^#{Right}
Sleep 75 ;Delay between each press, tweak if you are experiencing issues going back to the first Virtual Desktop
}
Sleep, 50
Loop, 3 {
SendInput ^#{Left}
Sleep 75 ;Delay between each press, tweak if you are experiencing issues going back to the first Virtual Desktop
}
Run, "Desktop Switch.ahk", %A_WorkingDir%
ExitApp, 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment