"Send !{Tab}" is buggy, maybe someone will suggest a better way?m0b-ua wrote:The script shoud activate last window after switching. I fix it by adding "Send !{Tab}" to the end of "switchToDesktop" function, but i think there is a better way to fix the issue.
[Windows 10] Switch to different virtual desktop on Win+{1,9}
Re: [Windows 10] Switch to different virtual desktop on Win+{1,9}
Re: [Windows 10] Switch to different virtual desktop on Win+{1,9}
No, it shouldn't. It does its job of asking Explorer to switch desktops. What Explorer does after that isn't my concern ^-^m0b-ua wrote:The script shoud activate last window after switching. I fix it by adding "Send !{Tab}" to the end of "switchToDesktop" function, but i think there is a better way to fix the issue.
I haven't tested how useful this function actually is, but you can try WinActivate % "ahk_id " . GetTaskbarVisibleWindows(1)[1]m0b-ua wrote:"Send !{Tab}" is buggy, maybe someone will suggest a better way?
(Also, this script is shit)
Re: [Windows 10] Switch to different virtual desktop on Win+{1,9}
It's working, tnx! It still don't work on fast switch, but i hope I'll get rid of ctrl and alt stuck on pressed position!qwerty12 wrote:I haven't tested how useful this function actually is, but you can try WinActivate % "ahk_id " . GetTaskbarVisibleWindows(1)[1]
-
- Posts: 1
- Joined: 13 Aug 2017, 01:26
Re: [Windows 10] Switch to different virtual desktop on Win+{1,9}
Code: Select all
#SingleInstance Force
#MaxThreads, 1
SetKeyDelay, 50
;*********MOVE TO RIGHT VIRTUAL DESKTOP*********
~LAlt & D::
While (GetKeyState("LAlt","P") && GetKeyState("D","P")) {
Send {LWin Down}{Tab}
Send {LCtrl Down}{Right Down}
Send {LWin Up}{LCtrl Up}{Right Up}
Send {Enter}
}
Return
;*********MOVE TO LEFT VIRTUAL DESKTOP*********
~LAlt & A::
While (GetKeyState("LAlt","P") && GetKeyState("A","P")) {
Send {LWin Down}{Tab}
Send {LCtrl Down}{Left Down}
Send {LWin Up}{LCtrl Up}{Left Up}
Send {Enter}
}
Return
The endless struggle to solve the shortcoming's of Windows.
Re: [Windows 10] Switch to different virtual desktop on Win+{1,9}
I've been loving this script, any way you could add support for Virtual Desktop 10-19 via Numpad0-9? Would've been very much appreciated!
-
- Posts: 69
- Joined: 28 Dec 2017, 02:53
Re: [Windows 10] Switch to different virtual desktop on Win+{1,9}
Snapping window: WIN+LEFT or RIGHT (can be used with UP or DOWN to get into quadrants)
Switch to recent window: Alt+Tab (unchanged) – Hold shows new Task view window view, let go and switches to app.
Task view: WIN+Tab – New Task view opens up and stays open.
Create new virtual desktop: WIN+Ctrl+d
Close current virtual desktop: WIN+Ctrl+F4
Switch virtual desktop: WIN+Ctrl+LEFT or RIGHT
Switch to recent window: Alt+Tab (unchanged) – Hold shows new Task view window view, let go and switches to app.
Task view: WIN+Tab – New Task view opens up and stays open.
Create new virtual desktop: WIN+Ctrl+d
Close current virtual desktop: WIN+Ctrl+F4
Switch virtual desktop: WIN+Ctrl+LEFT or RIGHT
Return to “Scripts and Functions (v1)”
Who is online
Users browsing this forum: ntepa and 119 guests